I have a package of classes that all share a common base class Model. The Model
implements Serializable and houses a few common values important values:
public class Model implements Serializable
{
long id; // primary key
Timestamp version; // optimistic locking aid
boolean deleted; // "soft" delete
....
}
The property access methods are in the derived models because they have
annotations @Id, @Version and @Column for each of these. In a real POJO those
accessors would be in the base Model class.
How can I persist base class properties from within the subclass?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926092#3926092
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926092
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user