JPA enhancement with Bndtools
-
01-06-2021 - |
문제
Some JPA implementations use bytecode enhancement to achieve performance. I am interested in OpenJPA and EclipseLink (which calls it weaving instead). They provide an Ant task to do it at build time. Can I make Bndtools run it (unlikely) or give it already enhanced .class files?
One possibility would be to write a Bnd plugin, so I am looking for others.
해결책 2
Using openjpa-maven-plugin, enabling enhance goal in m2e in the usual way, and moving Maven Project Builder before Bndtools Builder in project properties works.
다른 팁
Using OpenJPA Eclipse Tooling worked for me.
UPDATE: Scratch that, it produces wrong code https://issues.apache.org/jira/browse/OPENJPA-1879.
제휴하지 않습니다 StackOverflow