Hi,

Can I use BigInteger /DECIMAL(P,0)/ and BigDecimal as PrimaryKey ? This is
possible in any Database but OpenJPA throws an error:
Exception in thread "main" <openjpa-1.1.0-SNAPSHOT-r420667:592964M fatal
user error> org.apache.openjpa.persistence.ArgumentException: Type "class
test.DataObject" declares field "objectId" as a primary key, but keys of
type "java.math.BigInteger" are not supported.

Why is that restriction?


Regards,
Miro.

Reply via email to