Hi guys,
For integration purposes, i usually use embeddable classes (aka 'components'). In my situation, it is necessary to create a 'component' made by other 'components', for instance:
Quote:
@Embeddable
public class BasicUser{
String username;
....
}
@Embeddable
public class AppUser{
@Embedded
BasicUser basicUser;
//other information I need to embed here
...
}
@Entity
public class SomeEntityClass{
@Embedded
AppUser user;
...
}
When I try to do that, Hibernate throws an exception about repetead column name. Even if I try do override the column name through @AtributeOverride It doesn´t work.
So, how could I solve this? Is possible to use a component inside a component?
Best regards,