grails - GORM many-to-many on same domain -
i want create relation many-to-many between same entity.
class device { static hasmany = [devices: device] }
but leaves me one-to-many. how can accomplish this? know there quite few examples of many-to-many between 2 domains or many-to-many when there link 2 sets of same domain in different one, can't find such example nowhere.
you create sort of hacked many many list of devices
class device { static hasmany = [devicesownedby: device, devicesowned: device] }
here have device - devices 1..* , device - devicesowned 1..*
i doubt solution looking for, might suffice till answer comes along.
Comments
Post a Comment