Gregor,

a solution for this issue has been recently provided, but still needs to be 
tested and integrated fully. Please follow the progress of bug 1157 at 
http://bugzilla.exolab.org for information about final integration.

Regards
Werner

-----Urspr�ngliche Nachricht-----
Von: Gregor Milos [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 08. M�rz 2005 02:26
An: [email protected]
Betreff: [castor-user] Typesafe Enumeration



Hello there!

It is possible that this issue has been addressed either on the mailing list, 
or in the documentation, in which case please just point me to place. In any 
case what I am trying to do is to save a class which contains a TypeSafe 
enumeration to a database. Here is an example of a simple class that shows 
what I mean by the typesafe enumeration:


public interface TypesafeEnum{}

public class Colours implements TypesafeEnum{
 public static Colours RED = new Colours();
 public static Colours GREEN = new Colours(); 
 private Colours(){}
}

public class SaveTest {
 int someInt;
 Colours someColours;
 
 SaveTest(){
  someInt = 1;
  someColour = Colours.RED;
 }
}

How a SaveTest objects can be saved? This is a simillar issue to saving an 
object containing reference to a Singleton, but I could not find much about 
that on the mailing list either.


Thanks for your help
Gregor

-- 
Quidquid latine dictum sit, altum viditur --- Anon



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to