Issue Details (XML | Word | Printable)

Key: NUCXML-34
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: Li Yan
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store XML

JPA XML metadata parser error in <generated-value strategy="identity"/>

Created: 27/Aug/09 09:03 PM   Updated: 28/Dec/09 10:56 AM   Resolved: 28/Aug/09 06:51 AM
Component/s: Persistence
Affects Version/s: 1.0.3
Fix Version/s: None

Environment: Linux, google appengine java

Datastore: Other

 Description  « Hide
When using XML metadata instead of java annotation to instruct enhancer with persistence information, got warning This is a google appengine java app.

     [java] WARNING: MetaData Parser encountered an error in file "file:/tmp/jpatests/war/WEB-INF/classes/META-INF/orm.xml" at line 51, column 47 : cvc-enumeration-valid: Value 'identity' is not facet-valid with respect to enumeration '[TABLE, SEQUENCE, IDENTITY, AUTO]'. It must be a value from the enumeration. - Please check your specification of DTD and the validity of the MetaData XML that you have specified.

The related orm.xml is here:

  <entity class="Department" name="Department">
    <table name="Department"/>
      <id name="deptKey">
        <generated-value strategy="identity"/>

The corresponding java class is:

public class Department {
    private Key deptKey;

The message is a bit misleading since none of the four suggested values work. Would like to confirm if this is a harmless warning.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/Aug/09 06:51 AM
This project is for persisting to XML datastores. Your "issue" is nothing to do with that. I've no idea what your issue is either