Is it an option to declare the id as a Long/Integer field ie of the BigInteger? I think that will be the solution. And I don't think it is a restriction, it is just not supported.
KlaasJan On Nov 24, 2007 3:21 PM, Miroslav Nachev <[EMAIL PROTECTED]> wrote: > 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. >
