I have two ready tables:
Table "One"
id numeric (PK);
name varchar(100);
Table "Two"
property1 varchar(100);
one_id long;
I want map two classes for it tables:
class One
{
long id;
String name;
}
Two
{
One parent;
String property1;
}
If I add List<Two> properties
into One class, what annotations I must add to it? Class 'Two' marks as Embeddable. Modification of tables is deprecated.