openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rrac <>
Subject Re: OpenJPA Enhancement in Play Framework
Date Tue, 09 Sep 2014 13:24:28 GMT
Thank you for your advice.

Here is the solution for  the problem:

in buid.sbt should be added this PCEnhancer call

lazy val enhance = taskKey[Unit]("Enhances model classes")

enhance <<= (fullClasspath in Runtime, runner, streams).map({(cp, run, s) =>
  // only files from classpath are needed
  val classpath = cp.files
  // any options that need to be passed to the enhancer
  val options = Seq()
  // returns an option of errormessage
  val result ="org.apache.openjpa.enhance.PCEnhancer", classpath,
options, s.log)
  // if case of errormessage, throw an exception
}) triggeredBy(compile in Compile)

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message