[jboss-user] [EJB 3.0] - Using @ GeneratedValue for BigDecimal
rabbiaqaswar
do-not-reply at jboss.com
Thu Jan 18 03:22:01 EST 2007
Hi
how to use the @Generated annotation if the database type is Number and the equivalent data type in code is BigDecimal. I am using the code below but i am getting error since the id generator generates long, integer, short or string.
| @GeneratedValue(strategy=GenerationType.AUTO)
| @Id
| private BigDecimal personId;
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003184#4003184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003184
More information about the jboss-user
mailing list