Two Laptop Bag
The moose likes Object Relational Mapping and the fly likes Hibernate insert problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate insert problem" Watch "Hibernate insert problem" New topic

Hibernate insert problem

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
can someone tell me what is wrong with this code.
it prints "Data Inserted Successfully" but does not insert the values to database

T Mishra
Ranch Hand

Joined: Apr 04, 2006
Posts: 108

save the object before committing.

Tushar (SCJP 1.5)
It is sorta covered in the JavaRanch Style Guide.
subject: Hibernate insert problem
It's not a secret anymore!