Strolch is a parameterized framework for use on servers and IoT
Go to file
Robert von Burg 977d604a95 [New] created tests for object with no subType
This is implemented with the Book model in the test folder
2013-10-19 17:44:59 +02:00
src [New] created tests for object with no subType 2013-10-19 17:44:59 +02:00
.gitignore [Minor] Added eclipse settings file to .gitignore 2012-07-28 15:46:29 +02:00
COPYING [New] Added packaging information and files and licence 2012-06-14 23:40:29 +02:00
COPYING.LESSER [New] Added packaging information and files and licence 2012-06-14 23:40:29 +02:00
README.md Update README.md 2013-03-13 17:29:28 +01:00
pom.xml [Major] implemented new ObjectRef referencing of objects with locking 2013-10-15 22:26:58 +02:00

README.md

ch.eitchnet.java.xmlpers

Generic Java XML persistence layer. Implemented to be light-weight and simple to use

Dependencies

XmlPers is built by Maven3 and has very few external dependencies. The current dependencies are:

  • the Java Runtime Environment 6
  • ch.eitchnet.utils
  • slf4j 1.7.2
  • slf4j-log4j bindings (only during tests)
  • JUnit 4.10 (only during tests)

Features

The idea behind XmlPers is to have a very lightweight database where each object is saved in its own XML file.

The model for XmlPers is that for each persistable class the following information is available:

  • Type (e.g. the class name)
  • Optional Sub Type (e.g. some type in your class)
  • Id

This is not forced on the model itself, but in the DAO. Persisting changes is done by delegating to XmlFilePersister and the DAO must convert the object to a XML Document.

See the tests for a reference implementation.

Building

*Prerequisites:

  • JDK 6 is installed and JAVA_HOME is properly set and ../bin is in path
  • Maven 3 is installed and MAVEN_HOME is properly set and ../bin is in path
  • ch.eitchnet.utils is installed in your local Maven Repository
  • Clone repository and change path to root
  • Run maven:
    • mvn clean install