[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - preupdate on inherited classes?
d-rock
do-not-reply at jboss.com
Tue Dec 11 11:02:32 EST 2007
Hi,
I have a whole slew of objects that are using the preupdate method to update a record timestamp on persist. All of them are working correctly except for a small subset of classes that use inheritance. I've implemented and annotated the preupdate method on the base class and I have three subclasses (all of the base class) that provide their own fields for a single table inheritance model. When I try to persist any of the three, I get an exception that the record timestamp is null. I've been digging through the docs and I thought it said that this should work in an inheritance hierarchy when the preupdate method is in the base class. Did I misread it, or could something else be going on?
Thanks,
Derek
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111989#4111989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111989
More information about the jboss-user
mailing list