Search code examples
grailsgrails-domain-class

Which is the parent class for grails domains


Which class/interface is the parent for all the grails domains.

I just want to know which class actually executes save method of a grails domain

Let us suppose we have grails domain with name book Book book = new Book("1") book.save()

There is no save method in book class so where does it actually resides.


Solution

  • https://gorm.grails.org/6.0.x/api/org/grails/datastore/gorm/GormEntity.html

    GormEntity is the parent for all domains classes.