[jboss-user] [JBoss Seam] - Re: Enum in Seam

jfrankman do-not-reply at jboss.com
Mon Jul 2 11:50:14 EDT 2007


Pete,

Thanks for the example. What if a number is stored in the database instead of a string? When I try to do this:



  | public enum TypePayment 
  | {
  | 1("ANNUAL"),
  | 2("SEMIANNUAL");
  | 

I get a compile error. Is there a way I could still use and enumeration when the data stored in the database is numeric?


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

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



More information about the jboss-user mailing list