posted 17 years ago I've been running into some conceptual difficulties when working with complex relationships -- either long chains that effectively create a cycle/two access paths, or many-to-many (or doubled OneToMany's with a join entity).
Using the example from JPwH, we'd have the many-to-many relationship between Category and Items via one-to-many's to CategorizedItems. However both Category and Items would have rather have an exposed "getCategories" and "getItems" instead of "getCategorizedItems". Now of course both of these could be implemented in the respective class with looping over the return from the getCategorizedItems, and pulling out the entity of interest and building up a new list. Is this what most people end up doing? (Ie its exactly what Rails's :has_many_through was designed for)