14.5. Object Mapping

The current JDO specification does not define how the mapping between the Java class and the datastore schema should be specified; instead, it leaves this to the JDO implementation. This means that for each JDO implementation used, it is likely that a new set of mapping specifications would need to be defined. Of course, some underlying datastores may not require any additional mapping to be specified at all.

To aid in portability, JDO 2.0 may define standard JDO metadata elements for common mapping needs. This might allow a datastore name to be specified for a class or a field that a JDO implementation could then use when defining the datastore schema.

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.