enumeration « Update « JPA Q&A





1. HIbernate - Persistence - Enumeration    forum.hibernate.org

Newbie Joined: Fri Apr 16, 2010 9:46 am Posts: 2 Hello, I have a problem with hibernate. I have 3 classes : pays, which contains a list of client client, which refers to a pays and contains a list of Magasin magasin, which refers a client.* ------------------------------------------------------------------------------------------------------ @Entity @Name("magasin") @Scope(SESSION) @Table(name = "t_magasin") public class Magasin extends AbstractForCashWebEntityAction implements Serializable, IClassWithTreatmentCash ...

2. Persist enumeration with literals    forum.hibernate.org

3. another for persisting enumeration    forum.hibernate.org

Hi all, I would like persist Java5 enumerations in another way. Persisting enumeration using integer or varchar is usefull, but sometimes I thing it is not enough. Am I the only one who has this requirement ? Here such a use case: I have a Car object which has a TypeOfCar. I'd like to use Java5 enumeration for representing TypeOfCar. But ...