This project has retired. For details please refer to its Attic page.
Modello JPOX Plugin – jpox-jdo-mapping model syntax Fork me on GitHub

Modello JPOX Model Syntax

<model jpox.reserved-word-strictness="(enum)"
       jpox.table-prefix="(String)"
       jpox.column-prefix="(String)">
  <name>ExampleModel</name>
  <classes>
    <class jpox.enabled="(boolean)"
           jpox.detachable="(boolean)"
           jpox.not-persisted-fields="(List)"
           jpox.table="(String)"
           jpox.column-prefix="(String)"
           jpox.identity-type="(enum)"
           jpox.identity-class="(String)"
           jpox.use-identifiers-as-primary-key="(boolean)">
      <name>SimpleClass</name>
      <fields>
        <field jpox.fetch-groups="(List)"
               jpox.mapped-by="(String)"
               jpox.null-value="(String)"
               jpox.column="(String)"
               jpox.join-table="(String)"
               jpox.indexed="(enum)"
               jpox.persistence-modifier="(enum)"
               jpox.value-strategy="(enum)">
          <name>simple</name>
          <type>String</type>
          <required>true</required>
        </field>
        <field>
          <name>associative</name>
          <required>false</required>
          <association jpox.dependent="(boolean)"
                       jpox.join="(boolean)">
            <type>AnotherClass</type>
            <multiplicity>*</multiplicity>
          </association>
        </field>
      </fields>
    </class>
  </classes>
</model>
Context Attribute Values Description
Model jpox.reserved-word-strictness "warning" or "error" (default: warning)

This allows you to set the level of strictness on the reserved word violations within the TABLE / COLUMN / JOIN-TABLE names.

A setting of "error" will only throw an exception if a reserved word violation severity level of ERROR is encountered.

An attempt to use a reserved word found within the core SQL92 / SQL99 / or SQL2003 set of reserved words are considered an ERROR. Use of a reserved word found within a vendor specific SQL implementation is considered a WARNING.

You are encouraged to fix all reserved word violations to make your code as portable across multiple SQL implementations as possible.

Model jpox.table-prefix Any non-empty String.
(No Default)
Model jpox.column-prefix Any non-empty String.
(No Default)
Class jpox.enabled true or false.
(Default: true)
Class jpox.detachable true or false
(Default: true)
Class jpox.not-persisted-fields List of fields that are not persisted (seperated by spaces)
(No Default)
Class jpox.table Any non-empty String.
(No Default)
Class jpox.column-prefix Any non-empty String.
(No Default)
Class jpox.identity-type "application", "datastore", or "nondurable"
(No Default)
Class jpox.identity-class Any non-empty String. Refers to a Java Class name in the same package as the model.
(No Default)
Class jpox.use-identifiers-as-primary-key true or false
(Default: true)
Field jpox.fetch-groups List of fetch-group names (seperated by space).
(No Default)
Field jpox.mapped-by Any non-empty String.
(No Default)
Field jpox.null-value Any non-empty String.
(No Default)
Field jpox.column Any non-empty String.
(No Default)
Field jpox.join-table Any non-empty String.
(No Default)
Field jpox.indexed 'true', 'false', or 'unique'
(No Default)
Field jpox.persistence-modifier 'persistent', 'transactiona', or 'none'
(No Default)
Field jpox.value-strategy 'off', 'native', 'sequence', 'identity', 'increment', 'uuid-string', 'uuid-hex', 'datastore-uuid-hex', 'max', or 'auid'
(Default: 'native')
Association jpox.dependent true or false
(Default: true)
Association jpox.join true or false
(Default: true)