openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Halbert <j...@su3analytics.com>
Subject Error merging in entity - GeneratedValue
Date Fri, 26 Nov 2010 12:03:41 GMT
Hi Folks,

I'm getting the following response when trying to merge in an existing 
entity:

<openjpa-2.0.1-r422266:989424 nonfatal user error> 
org.apache.openjpa.persistence.InvalidStateException: The generated 
value processing detected an existing value assigned to this field: 
com.su3ana
lytics.crawler.model.GlobalFrontier.id.  This existing value was either 
provided via an initializer or by calling the setter method.  You either 
need to remove the @GeneratedValue annotation or mod
ify the code to remove the initializer processing.
         at 
org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:483)

I can confirm that the id field is not set, either via a constructor, or 
by a setter method.

Is it possible that it might be related to the followig issue in JIRA?
https://issues.apache.org/jira/browse/OPENJPA-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619733

<https://issues.apache.org/jira/browse/OPENJPA-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619733>

If so, is there a fix/patch available?

Cheers,
Joel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message