I need a way to have a domain class in order to have many of them. In other words, there are relationships between parents and children. The table I'm working in has data, and then a column called "parent_id". If any element has a parent set, it is a child of this element.
Is there any way in Grails to tell hasMany which field to look for for a link?
source share