Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Тест Hibernate
- мар 24, 2016 11:17:22 AM org.hibernate.Version logVersion
- INFO: HHH000412: Hibernate Core {5.0.6.Final}
- мар 24, 2016 11:17:22 AM org.hibernate.cfg.Environment <clinit>
- INFO: HHH000206: hibernate.properties not found
- мар 24, 2016 11:17:22 AM org.hibernate.cfg.Environment buildBytecodeProvider
- INFO: HHH000021: Bytecode provider name : javassist
- мар 24, 2016 11:17:22 AM org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver resolveEntity
- WARN: HHH90000012: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/hibernate-configuration. Use namespace http://www.hibernate.org/dtd/hibernate-configuration instead. Support for obsolete DTD/XSD namespaces may be removed at any time.
- мар 24, 2016 11:17:22 AM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
- INFO: HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
- мар 24, 2016 11:17:22 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
- WARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)
- мар 24, 2016 11:17:22 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
- INFO: HHH10001005: using driver [oracle.jdbc.driver.OracleDriver] at URL [jdbc:oracle:thin:@192.168.0.11:1521:ORCL]
- мар 24, 2016 11:17:22 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
- INFO: HHH10001001: Connection properties: {user=CJ, password=****}
- мар 24, 2016 11:17:22 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
- INFO: HHH10001003: Autocommit mode: false
- мар 24, 2016 11:17:22 AM org.hibernate.engine.jdbc.connections.internal.PooledConnections <init>
- INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
- мар 24, 2016 11:17:23 AM org.hibernate.dialect.Dialect <init>
- INFO: HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
- getall
- GETALL
- Hibernate: select this_.id as id1_0_0_, this_.text as text2_0_0_ from CJ.city this_ order by this_.id asc
- 1 МОСКВА
- мар 24, 2016 11:17:27 AM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl stop
- INFO: HHH10001008: Cleaning up connection pool [jdbc:oracle:thin:@192.168.0.11:1521:ORCL]
- Выход
- Exception in thread "main" org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: objectsdb.cj.kz.City.people, could not initialize proxy - no Session
- at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:567)
- at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:205)
- at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:146)
- at org.hibernate.collection.internal.PersistentSet.size(PersistentSet.java:143)
- at main.cj.kz.JMain.main(JMain.java:50)
Add Comment
Please, Sign In to add comment