Database Reference
In-Depth Information
The following listing shows the dependencies for the advanced mapping mode.
Listing C.2. Maven dependencies required for the advanced mapping mode
Aswiththesimplemappingmode,you'llneedtoexplicitlyincludeadependencytoacon-
crete JSR 303 implementation library. Again, we've used the Hibernate one here.
In addition to the dependencies themselves, the advanced mapping mode requires you
to configure the Maven build to use AspectJ for the build-time weaving of entities. The
following listing shows the snippet of configuration that will need to be added to your
pom.xml file to achieve this.
Listing C.3. AspectJ build configuration for the advanced mapping mode
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.7.4</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>1.7.4</version>
</dependency>
</dependencies>
 
Search WWH ::




Custom Search