cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nishant Neeraj <>
Subject many-to-many relationship does not work in Cayenne.
Date Sat, 22 Aug 2009 21:41:26 GMT

I have been trying to get a demo with Cayenne. Looks like
Cayenne does not like the schema the DAOs created are a mess. They have
texts like $importUtils.addType(${rel.TargetEntity.ClientClassName})
where you expect a method paramter.

I was creating the following relation-ship for a magzine-subscriber management.

(category) -|----(one to many)----<  (magazines)
(magazines) -|----(one to many)----<  (magazine_issues)
(magazine_issues) >----(many to one)----|-  (subscribers)

magazine_issues stores the information that which magazine is assigned
to which subscriber. so, everytime a order for a magazine comes there
is a row created in magazine_issues table.

The relationship that I have added in modeler is

category to magazine To Dep PK (checked), to many

magazine to category To Dep PK (un-checked), to many (un-checked)
magazine to magazine_issues To Dep PK (checked), to many (checked)

magazine_issue to magazine To Dep PK (un-checked), to many (un-checked)
magazine_issues to subscribers To Dep PK (un-checked), to many (un-checked)

subscribers to magazine_issues To Dep PK (checked), to many (checked)


these setting now when I try to create DAOs I get lot of placeholder
sort of code like

Can anyone explain me what I am doing wrong here?


      Love Cricket? Check out live scores, photos, video highlights and more. Click here
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message