play-jooq icon indicating copy to clipboard operation
play-jooq copied to clipboard

Count object cannot be updated

Open Numbslayer opened this issue 10 years ago • 0 comments

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!

Numbslayer avatar Nov 28 '14 04:11 Numbslayer