0 Replies Latest reply on Jun 8, 2007 5:11 AM by Mahesh Shinde

    Can't define Double for NUMERIC field.

    Mahesh Shinde Newbie


      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.