openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rrac <robert....@asr-group.hr>
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:

https://github.com/kristijanbambir/play-openjpa/blob/master/build.sbt

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 = run.run("org.apache.openjpa.enhance.PCEnhancer", classpath,
options, s.log)
  // if case of errormessage, throw an exception
  result.foreach(sys.error)
}) triggeredBy(compile in Compile)



--
View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-Enhancement-in-Play-Framework-tp7587064p7587083.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message