Hibernate problem

Hibernate problem

offline
  • Pridružio: 01 Apr 2005
  • Poruke: 797
  • Gde živiš: Niš

Imam sledeći prolblem:

Ova linija koda

sessionFactory = new Configuration().configure(HIBERNATE_CONFIG).buildSessionFactory();

štampa ovo:

21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit> INFO: Hibernate 3.2.6 21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found 21.09.2008. 21.40.59 org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib 21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling 21.09.2008. 21.40.59 org.hibernate.cfg.Configuration configure INFO: configuring from resource: model/hibernate/hibernate.cfg.xml 21.09.2008. 21.40.59 org.hibernate.cfg.Configuration getConfigurationInputStream INFO: Configuration resource: model/hibernate/hibernate.cfg.xml 21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : model/hibernate/Country.hbm.xml 21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: model.hibernate.Country -> country 21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : model/hibernate/Airport.hbm.xml 21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: model.hibernate.Airport -> airport 21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : model/hibernate/Flight.hbm.xml 21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: model.hibernate.Flight -> flight 21.09.2008. 21.41.00 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : model/hibernate/Ticket.hbm.xml 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: model.hibernate.Ticket -> ticket 21.09.2008. 21.41.00 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : model/hibernate/Airplane.hbm.xml 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: model.hibernate.Airplane -> airplane 21.09.2008. 21.41.00 org.hibernate.cfg.Configuration doConfigure INFO: Configured SessionFactory: null 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: model.hibernate.Airport.flightsForToId -> flight 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: model.hibernate.Airport.flightsForFromId -> flight 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: model.hibernate.Flight.ticketsForReturningId -> ticket 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: model.hibernate.Flight.ticketsForDepartureId -> ticket 21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: model.hibernate.Airplane.flights -> flight 21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using Hibernate built-in connection pool (not for production use!) 21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 20 21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure INFO: autocommit mode: false 21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure INFO: using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/sat 21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure INFO: connection properties: {user=umpirsky, password=****} 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: RDBMS: MySQL, version: 5.0.51b-community-nt 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) 21.09.2008. 21.41.00 org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect 21.09.2008. 21.41.00 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory INFO: Using default transaction strategy (direct JDBC transactions) 21.09.2008. 21.41.00 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch size: 15 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch updates for versioned data: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: enabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): enabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: auto 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Maximum outer join fetch depth: 2 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Generate SQL with comments: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL updates by primary key: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL inserts for batching: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 21.09.2008. 21.41.00 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init> INFO: Using ASTQueryTranslatorFactory 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Query language substitutions: {} 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: JPA-QL strict compliance: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Second-level cache: enabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory createCacheProvider INFO: Cache provider: org.hibernate.cache.NoCacheProvider 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Optimize cache for minimal puts: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Structured second-level cache entries: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Statistics: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Deleted entity synthetic identifier rollback: disabled 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Default entity-mode: pojo 21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled 21.09.2008. 21.41.00 org.hibernate.impl.SessionFactoryImpl <init> INFO: building session factory 21.09.2008. 21.41.01 org.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: Not binding factory to JNDI, no JNDI name configured 21.09.2008. 21.41.01 org.hibernate.impl.SessionFactoryImpl close INFO: closing 21.09.2008. 21.41.01 org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql://localhost/sat 21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close INFO: closing 21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql://localhost/sat 21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close INFO: closing 21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql://localhost/sat 21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close INFO: closing 21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql://localhost/sat

hibernate.cfg.xml izgleda ovako

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration>     <session-factory>         <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>         <property name="hibernate.connection.password">*******</property>         <property name="hibernate.connection.url">jdbc:mysql://localhost/sat</property>         <property name="hibernate.connection.username">user</property>         <property name="hibernate.current_session_context_class">thread</property>         <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>         <mapping resource="model/hibernate/Country.hbm.xml" />         <mapping resource="model/hibernate/Airport.hbm.xml" />         <mapping resource="model/hibernate/Flight.hbm.xml" />         <mapping resource="model/hibernate/Ticket.hbm.xml" />     </session-factory> </hibernate-configuration>

Inače sve radi onako kako očekujem, čitam iz baze podatke bez problema, ali dobijam ovaj log u konzoli.
U čemu je problem?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 979 korisnika na forumu :: 35 registrovanih, 1 sakriven i 943 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: aleksmajstor, babaroga, Ben Roj, Bobrock1, bojan_t, bokisha253, cavatina, CHARLIE JA., DPera, draganl, francis begbie, GAGI, GandorCC, Georgius, laganini123, laurusri, ljuba, mik7, mikrimaus, Milometer, MilosKop, mnn2, mocnijogurt, naki011, repac, stegonosa, Trpe Grozni, Tvrtko I, udbas, vathra, Vlad000, Vlada78, W123, yrraf, Žoržo