Same issue here...although I'm not using the @Embedded annotation.
Code sample:
Code:
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@MappedSuperclass
public class BaseClass
{
private Date date;
@Column(name = "date")
public Date getDate() {
return date;
}
@Entity(name = "subclass")
public class SubClass extends BaseClass
// This subclass table does not hold a date, so I want it to be transient
@Override
@Transient
public Date getDate() {
return null;
}
Now, I understand I can't override the @Column annotation with the @Transient. After some googling I found some results on a @TransientOverride annotation (
http://forum.hibernate.org/viewtopic.php?p=2395197) but I can't find that one in the javax.persistence set or org.hibernate.annotations set...