Wednesday, 28 August 2013

EclipseLink Static Weaving with Intellij

EclipseLink Static Weaving with Intellij

I'm using IntelliJ and I want my unit tests to be run or debug with static
weaving for lazy loading et al. I know that unlike Eclipse that IntelliJ
does not have a static weaving step but I imagine someone must have setup
IntelliJ to statically weave before running or debugging tests.
So far I have tried dynamic weaving with the JVM argument of
-javaagent:./path/eclipselink-2.5.0.jar but that doesn't seem to work. I
still get these warnings:
[EL Warning]: metadata: 2013-08-28
11:00:51.091--ServerSession(1610028911)--Reverting the lazy setting on the
OneToOne or ManyToOne attribute [owner] for the entity class [class
com.my.Contact] since weaving was not enabled or did not occur.
Do my IntelliJ brother and sisters just punt on this and skip weaving in
the IDE? Do we just not use EclipseLink or have we figured out how to
handle the static weaving and still use IntelliJ?
Thanks!

No comments:

Post a Comment