I have MappedSuperclass with a field
{code} @Column(updatable = false) private Long createdByLoginId;
public LoginId getCreatedByLoginId() { return new LoginId(createdByLoginId); } {code}
I have an entity that extends that class. I tried to make the createdByLoginId transient
{code} @ Column(name = "created_by_login_id") @Transient private Long createdByLoginId;
@ Override @Transient public LoginId getCreatedByLoginId() { return super.getCreatedByLoginId(); } @Override @Transient public void setCreatedByLoginId(final LoginId createdByLoginId) { return super.setCreatedByLoginId(createdByLoginId); } { code}
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. |
|