I have yet an othe rmapping question. Any help is greatly appreciated.
I have a table Student and two java classes(Student & Person)
Table-Student (name,age,ssn,FatherID,FatherName,MotherId,MotherName)
Public Class Student {
Sring name..
Parent father
Parent mother
...
..
}
Public Class Parent{
String id
String name
}
Question-
I want to use a composite for mapping Parent .
How do I use the same composite for both mother and father?
This is a simplified case of an earlier question I was asking.
Again thanks a lot for all the help and support from this forum.
|