I am using simpleDB GORM with my grails application, though simpledb is great its a huge drag while in development mode, every click takes few seconds resulting in not so rapid development.
From what I understand simpleDB comes into action only if domain class has following two lines in code
String id
static mapWith = "simpledb"
So, my question is, is it possible to remove/hide these two declaration on the fly from domain classes depending on some kind of flag?
Same question asked differently,
Is there a way in Groovy, most probably meta programming, by which I can
If you remove mapWith = "simpledb" it will be mapped with Hibernate, and it is probably not a very good idea to develop on Hibernate GORM in dev and SimpleDB GORM in prod mode - the biggest problem is that your application would behave very differently because SimpleDB is based on eventually consistency, and it means you would get nasty surprises when in production compared to good old consistent world of relational DB...
Thank you for using simpledb plugin!
Roman.