This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Question about Navigable property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Question about Navigable property " Watch "Question about Navigable property " New topic

Question about Navigable property

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Hi, this is from ICE:

A bank's branches and the accounts held within a branch are modeled as CMP Entity Beans with 1:M relationship, that is,
every branch has
multiple accounts maintained in it. It is important that the Account EJB exposes a getBranch() accessor. Assuming that
Developer's EJB development tools are used to implement the relationship, what are the different attributes that need to be set?

Since the account side can use getBranch()to get a Baranch instance, the Navigable property on the Account side of the relationship should be set, right? But the answer is:The Navigable property on the Branch side of the relationship should be set. Is my understanding wrong? Pls clarify.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
This question has more to do with WSAD than J2EE. In WSAD you would mark the Branch Ejb as Navigable, meaning it can be navigated to.
[ December 08, 2002: Message edited by: Chris Mathews ]
I agree. Here's the link:
subject: Question about Navigable property
It's not a secret anymore!