Danny_501 2 Junior Poster

Hi all,

Im using hibernate in netbeans to map to a mysql database, but am having problems....

when I open a session:

Session session = SessionFactoryUtil.getInstance().openSession();
        session.beginTransaction();

it prints out this in the console:...

12/04/2010 9:50:26 AM org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.3.1.GA
12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
12/04/2010 9:50:26 AM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
12/04/2010 9:50:26 AM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
12/04/2010 9:50:26 AM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
12/04/2010 9:50:26 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
12/04/2010 9:50:26 AM org.hibernate.cfg.AnnotationConfiguration secondPassCompile
INFO: Hibernate Validator not found: ignoring
12/04/2010 9:50:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
12/04/2010 9:50:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
12/04/2010 9:50:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
12/04/2010 9:50:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/assignment
12/04/2010 9:50:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=root}
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: MySQL, version: 5.0.51b-community-nt
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
12/04/2010 9:50:26 AM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
12/04/2010 9:50:26 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
12/04/2010 9:50:26 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
12/04/2010 9:50:26 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
12/04/2010 9:50:26 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
12/04/2010 9:50:26 AM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
12/04/2010 9:50:26 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured


thanks in advance
Daniel

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.