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;
This is unsupported.
See also EJB3 Java Persistence API 2.1.4 5th paragraph.