Hello,

I have a problem. I hope you guys can help. I have a Person class (table x)
and a Student class (table x and y). The Student class inherits from the
Person class. The Student class spans two tables. The other table (y) are
attributes that are unique to the Student class. My question is how can I
convert a Person to a Student or a Student back to a Person. Casting a
Student back to a Person and persisting does not get rid of its entry at
table y. I contemplated on just using custom queries, but there has to be a
more appropriate code to do this.  Any help is appreciated. Thanks.

Patrick
-- 
View this message in context: 
http://www.nabble.com/mutating-an-inherited-class-tp15744348p15744348.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to