15.5. Putting Things Together

The project can be compiled by ant (http://jakarta.apache.org), it but must be modified slightly to use other JDO implementations. A build.xml file can be found in the top-level directory.

15.5.1. XML metadata

The model.jdo metadata file is located in the src/com/corejdo/casestudy directory and follows the JDO 1.0 naming convention.

 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE jdo PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 1.0//EN" "http://java.sun.com/dtd/jdo_1_0.dtd"> <jdo> <package name="com.corejdo.casestudy.model"> <class name="Book"> </class> <class name="CD"> </class> <class name="Copy"> </class> <class name="Library"> </class> <class name="Publication"> </class> <class name="Rights"> ...

Get Core Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.