title: Unable to create table with hibernate hbm2ddl set to update.
body: <p>I am a newbie in hibernate and trying out basic stuff in hibernate . 
  I am using hibernate 5.0.2 and PostgreSQL 9.3
  The error I am getting is as below</p>
  
  <pre><code>INFO: HHH000228: Running hbm2ddl schema update
  Exception in thread "main" org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema management to JDBC target [create schema user]
  at org.hibernate.tool.schema.internal.TargetDatabaseImpl.accept(TargetDatabaseImpl.java:59)
  at org.hibernate.tool.schema.internal.SchemaMigratorImpl.applySqlString(SchemaMigratorImpl.java:420)
  at org.hibernate.tool.schema.internal.SchemaMigratorImpl.applySqlStrings(SchemaMigratorImpl.java:409)
  ....
  ....
  Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "user"
  </code></pre>
  
  <p>Here is my POJO:</p>
  
  <pre><code>package com.temp.ims.model;
  import javax.persistence.Entity;
  import javax.persistence.Id;
  import javax.persistence.Table;
  
  @Entity
  @Table(schema="user")
  public class User {
  
  @Id
  private int id;
  private String name;
  
  
  public User() {
  }
  
  public int getId() {
      return id;
  }
  
  public void setId(int id) {
      this.id = id;
  }
  
  public String getName() {
      return name;
  }
  public void setName(String name) {
      this.name = name;
  }
  }
  </code></pre>
  
  <p>I have used the following hibernate.cfg.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                       "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
  &lt;session-factory name="TestSessionFactory"&gt;
       &lt;property name="hibernate.connection.driver_class"&gt;org.postgresql.Driver&lt;/property&gt;
       &lt;property name="hibernate.connection.password"&gt;admin&lt;/property&gt;
       &lt;property name="hibernate.connection.url"&gt;jdbc:postgresql://localhost:5433/xyzdb&lt;/property&gt;
       &lt;property name="hibernate.connection.username"&gt;admin&lt;/property&gt;
       &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.PostgreSQLDialect&lt;/property&gt;
       &lt;property name="hibernate.connection.pool_size"&gt;5&lt;/property&gt;
       &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
       &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
  &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Below is code for getting SessionFactory:</p>
  
  <pre><code>standardServiceRegistry = new StandardServiceRegistryBuilder().configure("hibernate.cfg.xml").build();
  metadata = new metadataSources(standardServiceRegistry).addAnnotatedClass(User.class).addAnnotatedClassName("com.temp.ims.model.User").getMetadataBuilder()                 .applyImplicitNamingStrategy(ImplicitNamingStrategyJpaCompliantImpl.INSTANCE)
                  .build();
  
  sessionFactory = metadata.getSessionFactoryBuilder().build();
  </code></pre>
  
  <p>Please provide the solution to resolve above error.</p>