Okay, this is what I have so far:
Code:
@MappedSuperclass
public abstract class DomainObject implements Serializable {
/* Members */
@Id
@GeneratedValue
protected Long id;
@Column( name = "is_active" )
protected boolean isActive = true;
...
}
I realized that using @MappedSuperclass will inherit these fields, which is great!
HOWEVER, now I have a problem with the name of the id that gets generated for SubClass (of DomainObject)
Code:
Repeated column in mapping for entity: company.domain.SubClass column: id (should be mapped with insert="false" update="false")
Any ideas?