Chapter 6 Generating JDO Persistent Objects
To customize the generated JDO persistence descriptor and O/R mapping extensions, PowerAMC uses extended attributes for classes, attributes and associations.
The standard JDO 1.0 persistence descriptor does not support O/R mapping. To define O/R mapping, you have to use a JDO product that provides O/R mapping extension.
To generate a standard JDO persistence descriptor without any extension:
By default, PowerAMC generates a single metadata.jdo file.
To generate a separate .jdo file for each package that contains persistent objects:
If you want to generate a JDO persistence descriptor for a specific JDO product, you still need to configure standard JDO extended attributes.
If a class has primary key attributes, PowerAMC will generate an inner class to implement the primary key class.
If you use inheritances, only the parent class can have primary key attributes.
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |