15.2. Persistent Model Package

The following sections look at each of the persistence-capable classes.

15.2.1. Publication class

This is the base class of books and CDs in the library.

 Package com.corejdo.casestudy.model; import java.util.Date ; import java.util.Collection ; import javax.jdo.*; /** * This class contains generic * information common to all sorts of publications. * * <BR><FONT Color="red"><B>Persistent</B></FONT> */ public abstract class Publication { /** * The title of the publication. */ public String title; /** * Date, when the publication was published. */ public Date published; /** * Date, when the publication was first published. */ public Date firstPublished; /** * A copyright text. */ public String copyright; /** * The ...

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.