@ReturnInsert(returnOnly=true) not working with PostgreSQL [message #496523] |
Tue, 10 November 2009 07:36  |
Eclipse User |
|
|
|
Hi,
I tried to use the @returnInsert annotation
@ReturnInsert(returnOnly=true)
protected Timestamp insertdate;
and got this exception:
Exception [EclipseLink-193] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: There is no custom [InsertObjectQuery] set, but ReturningPolicy contains field(s) to be returned and [PostgreSQLPlatform] doesnt support generating call with returning.
Descriptor: RelationalDescriptor(ppd.model.entities.DVHist --> [DatabaseTable(DV_HIST)])
at org.eclipse.persistence.exceptions.DescriptorException.noCustomQueryForReturningPolicy(DescriptorException.java:1855)
at org.eclipse.persistence.descriptors.ReturningPolicy.validationAfterDescriptorInitialization(ReturningPolicy.java:871)
at org.eclipse.persistence.descriptors.ClassDescriptor.selfValidationAfterInitialization(ClassDescriptor.java:3498)
at org.eclipse.persistence.descriptors.ClassDescriptor.validateAfterInitialization(ClassDescriptor.java:5222)
at org.eclipse.persistence.descriptors.ClassDescriptor.postInitialize(ClassDescriptor.java:3218)
I'd like to know how I can make this work with PostgreSQL
Thanks
Habakuk
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06127 seconds