Joined: Wed Jul 21, 2010 11:34 pm Posts: 1
|
I am new to hibernate and i am using Hibernate Annotation. I have the following tables
LOOKUP_A CDE_A
PARENT_CLASS PARENT_ID
CHILD_CLASS CHILD_ID PARENT_NUM foreig key to PARENT_CLASS CDE_A foreign key to -- LOOKUP-A
my problems is I am inserting a recond into PARENT_CLASS table and the same time it will insert child record based on parent id. It is inserting proper. But the problem is when child record is going to insert , it is calling select query on LOOKUP_A table and after that it is call INSERT statement on CHILD_CLASS. I don't want to SELECT statement before INSERTING a record into child table. Please help me.
|
|