Сергей Горностаев: но она не завершается, не происходило ни одного SQL запроса, до этого я думал, что не надо связывать классы, представляющие сущности, реализованные с помощью аннотаций с конфиг файлом hibernate, но позже понял, что их тоже надо связывать, связала с помощью метода addAnnotatedClass, SQL запрос теперь создается, но вылетает другая ошибка
дек 08, 2016 12:53:48 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager
INFO: HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
дек 08, 2016 12:53:48 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.3.5.Final}
дек 08, 2016 12:53:48 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
дек 08, 2016 12:53:48 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
дек 08, 2016 12:53:48 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
дек 08, 2016 12:53:48 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
дек 08, 2016 12:53:48 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [org.postgresql.Driver] at URL [jdbc:postgresql://localhost:5432/postgres]
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {user=postgres, password=****}
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
дек 08, 2016 12:53:48 PM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
дек 08, 2016 12:53:48 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
дек 08, 2016 12:53:48 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
дек 08, 2016 12:53:48 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
INFO: HHH000397: Using ASTQueryTranslatorFactory
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: HHH000227: Running hbm2ddl schema export
Hibernate: drop table if exists user cascade
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: drop table if exists user cascade
Hibernate: drop sequence hibernate_sequence
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: ERROR: syntax error at or near "user"
Позиция: 22
Hibernate: create table user (id int8 not null, age int4, firstName varchar(50), lastName varchar(50), primary key (id))
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: create table user (id int8 not null, age int4, firstName varchar(50), lastName varchar(50), primary key (id))
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: ERROR: syntax error at or near "user"
Позиция: 14
Hibernate: create sequence hibernate_sequence
дек 08, 2016 12:53:49 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: HHH000230: Schema export complete