Hi all,
I am using Hibernate 3.1 and I am facing the following problem, somehow I have the feeling that I am missing something and the solution is quite simple :-)
I have two classes, Device:
Code:
public class Device implements Target
{
public String ip;
public String hostName;
....
}
and Company:
Code:
public class Company implements Target
{
public String name;
public String version;
....
}
These classes are successfully mapped to DEVICE_T and COMPANY_T respectively.
In addition I have a class that associated with
Target (i.e.Device or Company) as follow:
Code:
public class Task
{
public Target target;
}
My Question is how can I map the
Task class?
Thanks in advance,
Guy