I have MappedSuperclass with a field
@Column(updatable = false)
private Long createdByLoginId;
public LoginId getCreatedByLoginId() {
return new LoginId(createdByLoginId);
}
I have an entity that extends that class. I tried to make the createdByLoginId transient
@Override
@Transient
public LoginId getCreatedByLoginId() {
return super.getCreatedByLoginId();
}
Hibernate still throws the exception that the created_by_login_id is not present. I would like to not have to have the created_by_login_id in my subclass. I've read a several blog posts and stack overflow and support items around this starting from 2009. Seems like lots of interest but no one filed a JIRA for it. |