Grails GORM Rest plugin and sleep mode

How can I explicitly specify a domain class to map to the GORM REST plugin, so I can use the hibernate plugin for other domain classes.

Because I get an error when I do not remove the hibernate plugin.

+3
source share
1 answer

If you have more than one gorm mount installed, you can specify grails to be used with mappedWith

Add the following to the domain object.

static mappedWith = "restclient"

For the Rest gorm plugin, you still need to set the resource URL.

static mapping = {
    url "http://localhost:8080/amazon/books"
}

See guide .

0
source

All Articles