|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) @Target(value=PACKAGE) public @interface Schema
Package-level annotation. Each Java package that contains persisted classes must also be annotated. This is done by including a file named package-info.java in the package. This file must contain an @Schema annotation and the file contents are of the form:
@Schema(name="CDCatalogue", applicationName="CDCatJava", defaultMapFile="catalog")
package CDCatalogue;
import com.jadeworld.jade.persistence.Schema;
That is, the file contains an @Schema annotation, a Java package declaration for the current package name, and an import of com.jadeworld.jade.persistence.Schema to make the annotation available to the Java compiler.
| Required Element Summary | |
|---|---|
java.lang.String |
name
The JADE schema name for the classes in the package. |
| Optional Element Summary | |
|---|---|
java.lang.String |
applicationName
Optional. |
java.lang.String |
defaultMapFile
Optional. |
java.lang.String |
superSchema
Optional. |
| Element Detail |
|---|
public abstract java.lang.String name
public abstract java.lang.String applicationName
public abstract java.lang.String superSchema
public abstract java.lang.String defaultMapFile
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||