-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Records not inserted in database....
PostPosted: Wed Oct 26, 2005 1:16 am 
Newbie

Joined: Tue Oct 25, 2005 1:40 am
Posts: 7
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........


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 9:54 am 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
Post your code. Will be helpful to see your transaction and commit. Thanks

_________________
Don't forget to rate if the post helped!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.