My tries were with the static keyword. My problem still persists. The type "safe" enumeration doesn't have a public default constructor (to be "safe").
Carl -----Original Message----- From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED] Sent: 9 mars, 2004 08:42 To: [EMAIL PROTECTED] Subject: Re: [castor-dev] typesafe enum in mapping file - how to? Hi, I notice that this question is still not resolved, despite Keith's answer. So I looked at it again and came to wonder: Is the below correct? From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: vrijdag 5 maart 2004 19:16 > Castor supports type-safe enum if they have a valueOf method as such: > > public <type> valueOf(String stringValue) { > > } > > That can return the correct instance for the given value. > Or should that be: static public <type> valueOf(String stringValue) { } ? --Tim ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
