Hello.
I need help. If anyone had the same situation and/or know the solution,
please help.
The problem is that I use autogenerated classes. I use Axis wsdl2java
generation and I need some methods to be added to them but without
altering generated classes. I thought that Aspects would be great.
I did in-jar weaving and while aspectj compilation process there are
some warnings coming from Hibernate weaving (mostly that it cannot find
some packages used to compile Hibernate - net.sf.swarmcache for
example). I red that these warnings are not critical to compile. Ok. So
I did weaving into Hibernate, my maven config section was
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<configuration>
<weaveDependencies>
<weaveDependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
</weaveDependency>
</weaveDependencies>
<showWeaveInfo>true</showWeaveInfo>
<Xlint>warning</Xlint>
</configuration>
<executions>
<execution>
<id>compile</id>
<configuration>
<complianceLevel>1.5</complianceLevel>
<verbose>true</verbose>
<ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<configuration>
<ajdtBuildDefFile>test.ajproperties</ajdtBuildDefFile>
</configuration>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
All added classes via Aspects were seen and executed in all my packages.
But still, Hibernate didn't see it.
Please help!
Thank you,
Best Regards.
--
*Bartlomiej Zdanowski*
Programmer
Product Research Department
AutoGuard & Insurance Ltd.
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl <http://www.autoguard.pl>