| Tobias Lanz You cannot override the id definition, and that's not because of this Jira issue:
@AttributeOverrides({@AttributeOverride(name = "id", column = @Column(name = "xxxid", unique = true))})
The only way to customize the id in the subclasses is to not include it in the base class. In your case, it does not matter if it's a legacy schema because you can solve this at the HIbernate mapping level. Therefore, remove the id from the base class and push it to the subclasses unless you want the same definition for all subclasses. |