Im experiencing a weird behavior using tablePerSubclass inheritance option in GORM (grails 2.4.3)
Having one superclass domain Item
class Item {
static mapping = {
tablePerHierarchy false
}
}
and a subclass, let's say Book
class Book extends Item {
String name
String description
}
I get two tables in MySQL: Item and Book, when i save Book items i can see entries in Item table. Then i delete elements in Books table but Item table still has the reference!!
How is this possible?