play-jooq
play-jooq copied to clipboard
Count object cannot be updated
hi Jaiew,
I'm trying to use your plugin for my play 2.3 framework. However I met a issue related to this part:
override def onStart() { Logger.info("!!!OnStart count=" + Count.amount + "\n") if (Count.amount == 0) { Count.amount += 1; app.mode match { case Mode.Test => throw JooqGenerationRequired(dbApi) case Mode.Dev => throw JooqGenerationRequired(dbApi) case _ => None } } }
The first time I start the activator, the Count.amount is 0 and it triggers the js and I can click the button to generate the class. But when it redirect back to the application, the Count.amount is still 0 and loop infinitely. I'm quite a newbee to scala. Could you help? Thanks a lot!