I have an "Operation" object which needs to have a list of other "Operation" objects related.
Course on the DB i need a relation (some like "LinkedOperations") table with, say id1 and id2 columns, but not sure how to map that on Hibernate (if possible).
As the java object it's easy to think on an Operation object with a List of Operations but i'm confused about the mappings
Should i create a LinkedOperations object (just with the id's) and make a many-to-many relation with the Operation object, then on runtime read the list of linked object ids and manually? load each one when needed or is there any way hibernate can load the related objetcs automatically ?.
Any help appreciated
My ideas are confused and my english does not help, so.... sorry ;-)
|