O'Reilly logo

Core Java™ Data Objects by Heiko Bobzin, Michael Vorburger, Keiron McCammon, Sameer Tyagi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required