If everything is modeled correctly, your “Person” class should have an 
“addresses” method that will return a List containing all related addresses.

- hugi


> On 26. sep. 2015, at 13:20, Dipesh Jain <dip...@ivgroup.in> wrote:
> 
> Hii Hugi
> I am using Cayenne 3.1. You are assuming correctly. I do have mapped table
> ids but not with foreign key constraint, so I can not use foreign key
> constraint for mapping. And in this code where are you comparing two
> entities there is just person class hows it using join with address table.

Reply via email to