hi all
in my hibernate mapping file there are defined several subclasses. A few of them are using the userType KursArtUT. In some definitions i want to allow only a subset of possibilities which are defined in KursArtUT.
Is this possible?
My UserType has the following definitions:
Code:
public static final KursArt JAHRESKURS = new KursArt(new Integer(0));
public static final KursArt SAISONKURS = new KursArt(new Integer(1));
public static final KursArt HALBER_SAISONKURS = new KursArt(new Integer(2));
If my property can only use JAHRESKURS and SAISONKURS for example, and not HALBER_SAISONKURS, how is this implemented?
Should i create a Superclass with all common options and several subclasses of the usertype?
Any tipps/help appreciated
Regards
Angela