I am developing small Java application using hibernate. I am using Hibernate version 3 & postgres8 Database. The application successfully runs but With null values in all fields in database gets inserted.
& I m getting following message in Log file:-
INFO - hibernate.properties not found
INFO - Configured SessionFactory: null
INFO - autocommit mode: false
INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO - building session factory
WARN - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
Setting FName
Setting LName
Setting EMail
INFO - Not binding factory to JNDI, no JNDI name configured
INFO - Using dialect: org.hibernate.dialect.PostgreSQLDialect
INFO - table found: public.contact
INFO - columns: [lastname, firstname, email, id]
INFO - foreign keys: []
INFO - indexes: [contact_pkey]
INFO - table found: public.book
INFO - columns: [bookname, id]
INFO - foreign keys: []
INFO - indexes: []
INFO - cleaning up connection pool: jdbc:postgresql://localhost:5432/hibernatetutorial
INFO - Checking 0 named queries
Inserting Record
Created ID
Setting FName
Setting LName
Setting EMail
Created ID
Done
Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?)
flush
Please help me to identify what is problem........
|