I need to map a class to which I have no access.
@Entity
public class User extends org.springframework.security.core.userdetails.User {
@Id
@GeneratedValue
private Integer id;
private Integer age;
...
}
My tables are auto-generated and It only generate the columns at the subclass, how can I map the super class if I don't have access to annotate it with @Inheritance
?
I tried with @AttributeOverrides(value = { @AttributeOverride( name = "username", column = @Column(name = "username")) })
but doesn't looks to work