Hi,
I have a parent class
@MappedSuperclass
public abstract class UserAssociated extends Persistant
{
@OneToOne(optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "fk_user")
private User user;
..
}
like this however in the child class, I need to over ride the defiantion
@OneToOne(optional = false, cascade = CascadeType.ALL)
to
@ManyToOne(optional = false, cascade = CascadeType.ALL)
is this possible..
I see similar overiding for @AttributeOverrides and @AssociationOverrides.. but none seem to accept this kind of override.
Any clues pl.
Regards,
Nagendra
_________________ Raja Nagendra Kumar, C.T.O http://www.tejasoft.com TejaSoft - Specialists in Code Audit, Unit Testing and Merciless Re-factoring - Engineering Crisis Turnaround Experts
|