Hi MrG,

On Jan 23, 2007, at 5:37 AM, Michael Gentry wrote:

Hi Craig,

I'm pretty ignorant on the JPA stuff so far, but from an accessor
point of view, I'm assuming it would look something like this:

anEmployee.getHomeAddress().getStreet();

I wouldn't imagine there is a roll-up of the attributes into the main
class at all.

Correct. The only visibility in the enclosing class are the properties HomeAddress and WorkAddress. All of the address columns in the table are mapped into properties in the HomeAddress and WorkAddress.

Craig


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to