Prepare XSD schema document for the entities, in model
module.
Root element should have storage
name.
Update entities in model
module with JAXB annotations.
Create new implementation of Storage
interface - XmlStorage
that
uses JAXB to store data inside appropriate XML files - XML file name should be set via constructor.
Each entity should have its own Storage implementation - use abstractions where possible.
Ensure that result XML is valid against the XSD schema.
Update store
module to use xml-storage
instead of jdbc-storage
.
- Include latest
xml-storage
dependency. - Update
Runner
class to createStoreApp
based on JAXB XML storage. - Add examples that demonstrates
update
,delete
,find by id
operations.
This task is connected with: