Hi,
I am newbie to hibernate. I just followed your steps to implement one-to-many relationship thru hibernate. But I am getting the following message and the values are not getting inserted into database.
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Hibernate: insert into user (user_name) values (?)
User Id :5
Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?)
Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?)
Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?)
Could not execute JDBC batch update
Any help would be appreciated!!
Thanks in advance...
hibernate one-to-many relationshipsMahi June 5, 2011 at 9:25 AM
Hi, I am newbie to hibernate. I just followed your steps to implement one-to-many relationship thru hibernate. But I am getting the following message and the values are not getting inserted into database. log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Hibernate: insert into user (user_name) values (?) User Id :5 Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?) Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?) Hibernate: insert into address (address, parent_user_id, address_id) values (?, ?, ?) Could not execute JDBC batch update Any help would be appreciated!! Thanks in advance...
Good ExampleManjeet October 11, 2011 at 6:29 PM
Good Example for one to many relationship in hibernate to understand
hiNaresh February 21, 2012 at 3:38 PM
foreign column parent_id should not be mention not null in database. Since hibernate first enter data in tabale with null value in foreign column
hibernateajay July 20, 2012 at 3:33 PM
this is good e.g thx
Post your Comment