Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to store an ArrayList of Enum Values?


Yes this is possible. Your list will then need to be stored as a raw type as this mapping will be serialized to the database.


----- Original Message ----- From: "t3_chris" <c.reiter@xxxxxxx>
To: <eclipselink-users@xxxxxxxxxxx>
Sent: Tuesday, August 19, 2008 4:48 PM
Subject: [eclipselink-users] How to store an ArrayList of Enum Values?


I'am heavily using constructs like this to store Enum Values to the

@Column(name = "customer_status", nullable = false)
private CustomerStatus status;

Now, i am in need to store an ArrayList, or List or Collection of serveral
of those Enum Values.
Can this be done with EclipseLink 1.0 ?

If yes, how?

I need something like:

private ArrayList<CustomerStatus> customerStati;

How should the databasetable be designed for such thing?

Best Regards,
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

eclipselink-users mailing list

Back to the top