(Available since v1.1)
The @JPAAware class-level and package-level annotation makes Dynject interpret JPA annotations. Some of the annotations are used to derive validation rules (for example a @Column annotation with a length attribute), while others aer used to extract information about how to interact with the database. See JPA Support for a full list of consequences.
Javadoc Ref :
@JPAAware
Input Types 1 |
N/A (bind-time annotation) |
Output Types |
N/A (bind-time annotation) |
No arguments
Usually annotation will be placed at package-level since generally an application has the same connection settings across classes:
@com.planetalia.dynject.validation.dbaware.JPAAware
package com.foo.mypackage;