File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Object Relational Mapping
Associated/ Child Pojo not getting saved with one to many
Ravi Kiran Va
Joined: Apr 18, 2009
May 12, 2009 02:34:45
Hello All ,
Please help me on this :
Employee e1 = new Employee(); Employee emp1 = new Employee(); emp1.setEmployeeId(1003); emp1.setEmployeeName("test1"); Set emps = new HashSet(); emps.add(emp1); Dept dept = new Dept(); dept.setDeptId(1003); dept.setDeptName("test dept1"); dept.setEmployees(emps); session.save(dept); tx.commit();
The Parent POJO data is being inserted but the Child POJO is not getting inserted ??
Please share your ideas .
Save India From Corruption - Anna Hazare.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Associated/ Child Pojo not getting saved with one to many
please check this code
Problem with all-delete-orphan
Hibernate Criteria Ambiguos
How to sort in descending order
I have a ClassCastException as well
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014