How to save inherited objects in sleep mode

I have three classes

Rule of Contract Ride and class Contract extends Rule.and class Trip has a contract object. TripInstance.contract = contractObj TripInstance.save ()

I can not save the contract on a trip to the table.

+4
source share
1 answer

By default, Grails sets all properties of domain objects to nullable: false . Since it seems like you are getting a validation error, you might want to make sure that you have added all the relevant properties to the instance before saving it.

+2
source

All Articles