0 Replies Latest reply on Sep 5, 2008 10:04 AM by Muruga boopathy

    Issue in Data Persist with One To Many Table RelationShip

    Muruga boopathy Newbie
      Hi There,
         Iam new to Hibernate , i have 3 tables which is pointing to a single master table .when i enter data to one child table null records is getting created to other child tables,  hope the explanation below will help all of you to understand the problem.

      EDUORG   - > STUDENT
                      - > TEACHING STAFF
                      ->  NON-TEACHING STAFF
      EDUORG is the master table which holds some common data among all the three child tables and refers with three different tables for different datas.

      When i enter data for Student , the data for teaching-staff ,non-teaching staff table is getting inserted with Null Values. Please help me to fix this .

      Thanks in Advance.