[2.1 Java] Ebean enhancement parameter

22 views
Skip to first unread message

Wolfgang Buchner

unread,
May 21, 2013, 8:42:51 AM5/21/13
to play-fr...@googlegroups.com
Hey,

i discovered a behavior of ebean, that i want to deactivate:

see https://github.com/ebean-orm/avaje-ebeanorm/issues/26

Generally i propose this should be deactivated as default for Play. IMHO this feature can produce some headache for the devs :P
Accessing a simple getter or field of a many relation will set this to an empty collection and within a partial stateless update will this cause a deletion of all relations.

So i tried to deactivate this Ebean Agent enhancement feature, but i failed.

Currently it isn't configurable and i also tried to override or change the PlayCommands.PostCompile() actions of play...

Anyone got a idea how i can workaround this?

Wolfgang Buchner

unread,
May 22, 2013, 1:57:20 AM5/22/13
to play-fr...@googlegroups.com
Ok i found a posibility to execute my enhancement before the default enhancement of Play.

lazy val main = play.Project(appName, appVersion, appDependencies, settings = Defaults.defaultSettings ++ Seq[Setting[_]](compile in (Compile) <<= YourOwnPostCompileEvent(scope = Compile))).settings(
   
// do not add it here, cause otherwise it will be executed after the default Play PostCompile and so the enhancement won't be done!
 
)
Reply all
Reply to author
Forward
0 new messages