• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin

Many to Many relationship

Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have a many to many relationship which returns a collection of refences to local interfaces as defined below :

<ejb-relation >

<ejb-relationship-role >
<relationship-role-source >
<cmr-field >

<ejb-relationship-role >
<relationship-role-source >
<cmr-field >


how does the container persist the relationship/ mapping between the two ( in a one to many the relationship is persisted by creating a foreign key column in the schema). Also how do you traverse the relationship from either side using EJB-QL. A straight forward EJB-QL such as

FROM GeographicZoneSchema g, IN(g.features) f
WHERE f.uid = ?1

seems to produce a empty collection.

Any thoughts would help.


Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic