-
1. Re: Persisting enums...
inkypinky Dec 21, 2005 11:55 AM (in response to inkypinky)OK, problem solved, enums persist fine my problem was realted to tomcats classloader not dealing with enums but now i have set the web magic to use Jboss' classloader instead....
:p -
2. Re: Persisting enums...
greening Dec 21, 2005 4:44 PM (in response to inkypinky)The just-released proposed final draft has a new annotation allowing enum fields to be persisted ordinals or strings.
public enum EmployeeStatus {FULL_TIME, PART_TIME, CONTRACT}
public enum SalaryRate {JUNIOR, SENIOR, MANAGER, EXECUTIVE}
@Entity public class Employee {
...
public EmployeeStatus getStatus() {...}
@Enumerated(STRING)
public SalaryRate getPayScale() {...}
...
}
When do y'all expect to release a new EJB3 alpha that roughly conforms with the PFD? -
3. Re: Persisting enums...
epbernard Dec 30, 2005 9:12 PM (in response to inkypinky)This is part of Hibernate Annotations beta8
http://opensource2.atlassian.com/projects/hibernate/browse/ANN?report=com.atlassian.jira.plugin.system.project:roadmap-panel