java - Ebean enhancement ignores a model -


we using avaje-agentloader enhance our ebeans. ebeans in same package. including loader, agent & base ebean library in our project (via sbt):

"org.avaje" % "avaje-agentloader" % "1.1.2", "org.avaje.ebeanorm" % "avaje-ebeanorm" % "4.5.5", "org.avaje.ebeanorm" % "avaje-ebeanorm-agent" % "4.5.2", 

however, when loader runs enhancement, skips 1 ebean.

each ebean annotated @entity , extends com.avaje.ebean.model. there seem no differences between ones enhanced , 1 not. there no includes, or extends, etc.

basically, i'm wondering if has run across issue in past, or has insights.

things we've tried:

  • specifying actual classes enhanced via serverconfig.setclasses(...)
  • specifying pakages analyse/enhance via serverconfig.addpackage(...) or setpackages(...)
  • not specifying @ , having loader analyse all.
  • we've set break-point @ transformer.transform , bean in question never hit.

note: if use ebean agent via agent loader on command line, or via maven plugin, or sbt, works.

ok, posted on ebean group on google groups well, , rob bygrave responded, explaining few things. (read reply here)

  1. serverconfig.setxxx have nothing ebean enhancement.
  2. it looks bean being loaded before agent loads.

he correct, indeed model/bean in question being loaded before agent. tracking down why.

the issue therefore agent not enhance beans have been loaded classloader (makes sense). did mention "change ebean agent support 'class redefinition'".


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -