How to save inherited objects in hibernate
I have three classes
Rule Contract Trip and class Contract ext开发者_开发技巧ends Rule.and class Trip has contract object . TripInstance.contract = contractObj TripInstance.save()
i am not able to save the contract in to table trip.
By default, Grails sets all properties on domain objects to nullable: false
. Since it seems like you're getting a validation error, you might want to make sure that you've added all of the appropriate properties to the instance before you save it.
精彩评论