I wolud like to do sth like this:
@Embeddable @Entity public class Person { private String name; private String surname; // some simple types
@Embedded private Person nonEntityPerson = new Person(); // <--------- here is a recurrent problem, I would like it to be just two additonal columns in this table interpreted as person without person embedded in this already embedded non entity object, but hibernate starts to build it recurrently
}
is it possible to embed person, or I have to make it @OneToOne ?
|