enj annotation @oneToMany and @manyToOne
- by chetan
I have four table one parent table other three are child table related parent with parent primary key. Now I want to get list of child table into parent table with @oneToMany and @ManyToOne annotation of EJB.
parentTable name : tblm_attendancepolicy---primary key name ---attendancepolicyid
first childtable name :tblm_empattendancepolicy
second child table name : tblm_deptattendacepolicy.
third child table name : tblm_compattendancepolicy.