This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Reference of the same type. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Reference of the same type." Watch "Reference of the same type." New topic

Reference of the same type.

Rob Shepherd

Joined: Dec 08, 2003
Posts: 4
Dear EJB forum,

I'm having difficulty understanding and implementing an entity bean.

The class looks like this.

it is a unidirectional relationship between one object and another.

I've confused myself into oblivion, so i won't make any assumptions or preemtive suggestions.

could somebody explain how I might annotate this and preserve the relation mapping through persistence.

many thanks for any suggestions

I agree. Here's the link:
subject: Reference of the same type.
It's not a secret anymore!