[jboss-user] [EJB 3.0] - Can't define Double for NUMERIC field.

m.shinde do-not-reply at jboss.com
Fri Jun 8 05:11:46 EDT 2007


Hi,

I want to map my Enitity having field price whose datatype I want to define is Double.
But In database it is defined as NUMBERIC(5,2) So It is giving me error as Expecting double.

Entity Bean

  | private Double price;
  | 

Here I tried by defining columndefination like

  | @Column(columnDefination="NUMERIC" precision=5,scale=2)
  | private Double price;
  | 

Still it is complaining.

Database field defination

  | PRICE	NUMBER(5,2)	Y		buying price
  | 


Please suggest.



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

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



More information about the jboss-user mailing list