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?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913875#3913875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913875


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to