[jboss-user] [EJB 3.0] - Re: Using enums with entity beans

onormann@gmx.net do-not-reply at jboss.com
Wed Feb 21 11:40:58 EST 2007


You also can use the @Enumerated - annotation and choose the type ORDINAL or STRING, so you won't get problems with the order of newly added enum-constants.



  | @Enumerated(EnumType.STRING)
  | @Column(name="CATEGORY", nullable=false)
  | private Category category;
  | 

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

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



More information about the jboss-user mailing list