XML Datastores

DataNucleus supports persisting objects to XML datastores (using the datanucleus-xml plugin). It makes use of JAXB. Support for XML is in its very early stages and will be enhanced in future releases. If you wish to help out in this effort either by contributing or by sponsoring particular functionality please contact us via the DataNucleus Forum.

Datastore Connection

DataNucleus supports the following mode of operation, file-based

The following persistence properties will connect to a local file on your local machine

datanucleus.ConnectionURL=xml:file:myfile.xml

replacing "myfile.xml" with your filename, which can be absolute or relative



Known Limitations

The following are known limitations of the current implementation

  • Datastore identity is not supported
  • Optimistic checking of versions is not supported
  • Application identity is supported but can only have 1 PK field and must be a String. This is a limitation of JAXB
  • Persistent properties are not supported, only persistent fields
  • Identity generators that operate using the datastore are not supported