You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (JIRA)" <ji...@apache.org> on 2010/10/20 23:18:23 UTC
[jira] Closed: (OPENJPA-1842) CachedEntityStatistics depends on
@GeneratedValue which is not supported in Oracle by default
[ https://issues.apache.org/jira/browse/OPENJPA-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee closed OPENJPA-1842.
-------------------------------
> CachedEntityStatistics depends on @GeneratedValue which is not supported in Oracle by default
> ---------------------------------------------------------------------------------------------
>
> Key: OPENJPA-1842
> URL: https://issues.apache.org/jira/browse/OPENJPA-1842
> Project: OpenJPA
> Issue Type: Test
> Affects Versions: 2.0.0, 2.0.1
> Reporter: Albert Lee
> Assignee: Albert Lee
> Priority: Minor
> Fix For: 2.0.2, 2.1.0
>
>
> CachedEntityStatistics depends on @GeneratedValue which is not supported in Oracle by default unless special trigger and OracleDictionary setting is implemented.
> Otherwise, the following similar exception will be observed.
> Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ORA-01400: cannot insert NULL into ("JPAUSER"."CACHEDENTITYSTATISTICS"."ID")
> {prepstmnt 406657085 INSERT INTO CachedEntityStatistics (firstName, lastName, version) VALUES (?, ?, ?) [params=?, ?, ?]} [code=1400, state=23000]
> SInce TestStatistics, the test case uses CachedEntityStatistics, is not testing GeneratedValue per se, will remove the annotation and implement a simple id assignment in CachedEntityStatistics class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.