|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityMappings
The entity-mappings element is the root element of an mapping file. It contains the following four types of elements: 1. The persistence-unit-metadata element contains metadata for the entire persistence unit. It is undefined if this element occurs in multiple mapping files within the same persistence unit. 2. The package, schema, catalog and access elements apply to all of the entity, mapped-superclass and embeddable elements defined in the same file in which they occur. 3. The sequence-generator, table-generator, named-query, named-native-query and sql-result-set-mapping elements are global to the persistence unit. It is undefined to have more than one sequence-generator or table-generator of the same name in the same or different mapping files in a persistence unit. It is also undefined to have more than one named-query or named-native-query of the same name in the same or different mapping files in a persistence unit. 4. The entity, mapped-superclass and embeddable elements each define the mapping information for a managed persistent class. The mapping information contained in these elements may be complete or it may be partial.
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="persistence-unit-metadata" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
<element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
<element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
<element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" minOccurs="0"/>
<element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
<element name="mapped-superclass" type="{http://java.sun.com/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
<element name="entity" type="{http://java.sun.com/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
<element name="embeddable" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence/orm}versionType" fixed="1.0" />
</restriction>
</complexContent>
</complexType>
| Method Detail |
|---|
String getDescription()
Stringvoid setDescription(String value)
value - allowed object is
StringPersistenceUnitMetadata getPersistenceUnitMetadata()
PersistenceUnitMetadatavoid setPersistenceUnitMetadata(PersistenceUnitMetadata value)
value - allowed object is
PersistenceUnitMetadataString getPackage()
Stringvoid setPackage(String value)
value - allowed object is
StringString getSchema()
Stringvoid setSchema(String value)
value - allowed object is
StringString getCatalog()
Stringvoid setCatalog(String value)
value - allowed object is
StringAccessType getAccess()
AccessTypevoid setAccess(AccessType value)
value - allowed object is
AccessTypeSequenceGenerator[] getSequenceGenerator()
SequenceGeneratorSequenceGenerator getSequenceGenerator(int idx)
SequenceGeneratorint getSequenceGeneratorLength()
void setSequenceGenerator(SequenceGenerator[] values)
values - allowed objects are
SequenceGenerator
SequenceGenerator setSequenceGenerator(int idx,
SequenceGenerator value)
value - allowed object is
SequenceGeneratorTableGenerator[] getTableGenerator()
TableGeneratorTableGenerator getTableGenerator(int idx)
TableGeneratorint getTableGeneratorLength()
void setTableGenerator(TableGenerator[] values)
values - allowed objects are
TableGenerator
TableGenerator setTableGenerator(int idx,
TableGenerator value)
value - allowed object is
TableGeneratorNamedQuery[] getNamedQuery()
NamedQueryNamedQuery getNamedQuery(int idx)
NamedQueryint getNamedQueryLength()
void setNamedQuery(NamedQuery[] values)
values - allowed objects are
NamedQuery
NamedQuery setNamedQuery(int idx,
NamedQuery value)
value - allowed object is
NamedQueryNamedNativeQuery[] getNamedNativeQuery()
NamedNativeQueryNamedNativeQuery getNamedNativeQuery(int idx)
NamedNativeQueryint getNamedNativeQueryLength()
void setNamedNativeQuery(NamedNativeQuery[] values)
values - allowed objects are
NamedNativeQuery
NamedNativeQuery setNamedNativeQuery(int idx,
NamedNativeQuery value)
value - allowed object is
NamedNativeQuerySqlResultSetMapping[] getSqlResultSetMapping()
SqlResultSetMappingSqlResultSetMapping getSqlResultSetMapping(int idx)
SqlResultSetMappingint getSqlResultSetMappingLength()
void setSqlResultSetMapping(SqlResultSetMapping[] values)
values - allowed objects are
SqlResultSetMapping
SqlResultSetMapping setSqlResultSetMapping(int idx,
SqlResultSetMapping value)
value - allowed object is
SqlResultSetMappingMappedSuperclass[] getMappedSuperclass()
MappedSuperclassMappedSuperclass getMappedSuperclass(int idx)
MappedSuperclassint getMappedSuperclassLength()
void setMappedSuperclass(MappedSuperclass[] values)
values - allowed objects are
MappedSuperclass
MappedSuperclass setMappedSuperclass(int idx,
MappedSuperclass value)
value - allowed object is
MappedSuperclassEntity[] getEntity()
EntityEntity getEntity(int idx)
Entityint getEntityLength()
void setEntity(Entity[] values)
values - allowed objects are
Entity
Entity setEntity(int idx,
Entity value)
value - allowed object is
EntityEmbeddable[] getEmbeddable()
EmbeddableEmbeddable getEmbeddable(int idx)
Embeddableint getEmbeddableLength()
void setEmbeddable(Embeddable[] values)
values - allowed objects are
Embeddable
Embeddable setEmbeddable(int idx,
Embeddable value)
value - allowed object is
EmbeddableString getVersion()
Stringvoid setVersion(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||