posted 11 years ago
Hi All,
I think I am doing something that is very basic, incorrectly.
I have a parent child relation ship in my db and I am trying to save data.Data gets properly saved into parent table but it does not get saved into child table.
I have defined OneToMany relation in parent table and ManyToOne in child table.All of import statements are importing javax.persistence classes (can that be an issue?).
Another thing is that child class is child of two classes(It has two columns that have ManyToOne relations).Is that an issue?
Parent class :-
Child class -
Data should be saved in CustomerCsoProfileMap when data is inserted in CsoProfile.There is no error in logs.Also I see the insert statement for parent class and also the sequencename.nextval for parent class sequence in logs.I do not see any statement in logs for child class at all.
What am I doing wrong?