equivalent of InheritanceType.TABLE_PER_CLASS in grails?
问题 I want to create 3 separate tables for 3 domain classes: A, B extends A, C extends B But I want their tables to be NOT connected to each other. In hibernate, I would use InheritanceType.TABLE_PER_CLASS, in grails, what would be the equivalent? 回答1: Try to use tablePerHierarchy false class Payment { Integer amount static mapping = { tablePerHierarchy false } } class CreditCardPayment extends Payment { String cardNumber } See more : http://grails.org/doc/latest/guide/single.html#5.5.2.3