gorm-mongodb icon indicating copy to clipboard operation
gorm-mongodb copied to clipboard

Allow "Table Per Heirarchy" for Persistence, (please)

Open gravattm opened this issue 8 years ago • 1 comments

Please allow the ability to use OO Inheritance in Grails domain classes that produce individual Collections in MongoDB per Child Class.


Example Current: BaseClass -> property1, property2

SubClass -> property3, property4

Expression in MongoDB is: BaseClass Collection -> class:SubClass, property1, property2, property3(nullable: true), property4(nullable: true)


Preferred Expression In MongoDB:

SubClass Collection -> property1, property2, property3, property4

** This allows us to use OO in Grails domain classes without repercussions in the persistent tier, among other benefits.

THANK YOU for the plugin and for your consideration.

gravattm avatar Feb 10 '17 22:02 gravattm

Default is collection par hierarchy which works, i guess u want collection par subclass. @gravattm am i missing some thing ?

snimavat avatar Jun 30 '17 15:06 snimavat