I'm unable to work out an appropriate mapping strategy for the below scenario.
Following are the DB tables and the
java code i want them to map.
Any pointers would be of great help.
GROUP
groupid | name
1 | group1
2 | group2
GROUP_OBJ
groupid | objecttype | objectid
1 OBJ1 1
1 OBJ1 2
1 OBJ2 1
1 OBJ3 3
2 OBJ1 1
2 OBJ2 2