1 Reply Latest reply on Jan 18, 2007 4:28 AM by wolfc

    Using @ GeneratedValue for BigDecimal

    rabbiaqaswar

      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