I\'m considering using Annotations to define my Hibernate mappings but have run into a problem: I want to use a base entity class to define common fields (including the ID
On the method in the child dont add the second @Id tag.
@Override // So that we can set Generated strategy @GeneratedValue(strategy = AUTO) public Integer getId() { return super.getId(); }