Hi,
I would like to know if it is possible to override a embedded field (and also a parent class field) to turn it transient. The use case is:
Code:
@MappedSuperclass
@Embeddable
public class Person {
private String name;
private Date dateOfBirth;
...
@Column(name = "NAME")
public String getName() {
return name;
}
@Column(name = "BIRTH")
public Date getDateOfBirth() {
return dateOfBirth;
}
...
}
@Entity
public class Actor {
private Person person;
...
@Embedded
// I need to turn dateOfBirth transient
public Person getPerson() {
return person;
}
...
}
@Entity
@Table("DIRECTOR")
// I need to turn dateOfBirth transient
public class Director extends Person {
...
}
Tnx.