| Package | Description |
|---|---|
| org.hibernate.jpamodelgen.xml.jaxb |
| Class and Description |
|---|
| AccessType
<p>Java class for access-type.
|
| AssociationOverride
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface AssociationOverride {
String name();
JoinColumn[] joinColumns() default{};
JoinTable joinTable() default @JoinTable;
}
|
| AttributeOverride
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface AttributeOverride {
String name();
Column column();
}
|
| Attributes
This element contains the entity field or property mappings.
|
| Basic
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Basic {
FetchType fetch() default EAGER;
boolean optional() default true;
}
|
| CascadeType
public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH, DETACH};
|
| CollectionTable
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface CollectionTable {
String name() default "";
String catalog() default "";
String schema() default "";
JoinColumn[] joinColumns() default {};
UniqueConstraint[] uniqueConstraints() default {};
Index[] indexes() default {};
}
|
| Column
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Column {
String name() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
int length() default 255;
int precision() default 0; // decimal precision
int scale() default 0; // decimal scale
}
|
| ColumnResult
@Target({}) @Retention(RUNTIME)
public @interface ColumnResult {
String name();
Class type() default void.class;
}
|
| ConstructorResult
@Target({}) @Retention(RUNTIME)
public @interface ConstructorResult {
Class targetClass();
ColumnResult[] columns();
}
|
| Convert
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface Convert {
Class converter() default void.class;
String attributeName() default "";
boolean disableConversion() default false;
}
|
| Converter
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface Converter {
boolean autoApply() default false;
}
|
| DiscriminatorColumn
@Target({TYPE}) @Retention(RUNTIME)
public @interface DiscriminatorColumn {
String name() default "DTYPE";
DiscriminatorType discriminatorType() default STRING;
String columnDefinition() default "";
int length() default 31;
}
|
| DiscriminatorType
<p>Java class for discriminator-type.
|
| ElementCollection
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ElementCollection {
Class targetClass() default void.class;
FetchType fetch() default LAZY;
}
|
| Embeddable
Defines the settings and mappings for embeddable objects.
|
| EmbeddableAttributes
<p>Java class for embeddable-attributes complex type.
|
| Embedded
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Embedded {}
|
| EmbeddedId
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface EmbeddedId {}
|
| EmptyType
<p>Java class for emptyType complex type.
|
| Entity
Defines the settings and mappings for an entity.
|
| EntityListener
Defines an entity listener to be invoked at lifecycle events
for the entities that list this listener.
|
| EntityListeners
@Target({TYPE}) @Retention(RUNTIME)
public @interface EntityListeners {
Class[] value();
}
|
| EntityMappings
The entity-mappings element is the root element of a mapping
file.
|
| EntityResult
@Target({}) @Retention(RUNTIME)
public @interface EntityResult {
Class entityClass();
FieldResult[] fields() default {};
String discriminatorColumn() default "";
}
|
| EnumType
<p>Java class for enum-type.
|
| FetchType
<p>Java class for fetch-type.
|
| FieldResult
@Target({}) @Retention(RUNTIME)
public @interface FieldResult {
String name();
String column();
}
|
| ForeignKey
@Target({}) @Retention(RUNTIME)
public @interface ForeignKey {
String name() default "";
String foreign-key-definition() default "";
boolean disable-foreign-key() default false;
}
|
| GeneratedValue
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface GeneratedValue {
GenerationType strategy() default AUTO;
String generator() default "";
}
|
| GenerationType
<p>Java class for generation-type.
|
| Id
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Id {}
|
| IdClass
@Target({TYPE}) @Retention(RUNTIME)
public @interface IdClass {
Class value();
}
|
| Index
@Target({}) @Retention(RUNTIME)
public @interface Index {
String name() default "";
String columnList();
boolean unique() default false;
}
|
| Inheritance
@Target({TYPE}) @Retention(RUNTIME)
public @interface Inheritance {
InheritanceType strategy() default SINGLE_TABLE;
}
|
| InheritanceType
<p>Java class for inheritance-type.
|
| JoinColumn
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface JoinColumn {
String name() default "";
String referencedColumnName() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
ForeignKey foreignKey() default @ForeignKey();
}
|
| JoinTable
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface JoinTable {
String name() default "";
String catalog() default "";
String schema() default "";
JoinColumn[] joinColumns() default {};
JoinColumn[] inverseJoinColumns() default {};
UniqueConstraint[] uniqueConstraints() default {};
Index[] indexes() default {};
}
|
| Lob
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Lob {}
|
| LockModeType
<p>Java class for lock-mode-type.
|
| ManyToMany
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ManyToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default LAZY;
String mappedBy() default "";
}
|
| ManyToOne
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ManyToOne {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default EAGER;
boolean optional() default true;
}
|
| MapKey
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface MapKey {
String name() default "";
}
|
| MapKeyClass
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface MapKeyClass {
Class value();
}
|
| MapKeyColumn
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface MapKeyColumn {
String name() default "";
boolean unique() default false;
boolean nullable() default false;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
int length() default 255;
int precision() default 0; // decimal precision
int scale() default 0; // decimal scale
}
|
| MapKeyJoinColumn
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface MapKeyJoinColumn {
String name() default "";
String referencedColumnName() default "";
boolean unique() default false;
boolean nullable() default false;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
}
|
| MappedSuperclass
Defines the settings and mappings for a mapped superclass.
|
| NamedAttributeNode
@Target({}) @Retention(RUNTIME)
public @interface NamedAttributeNode {
String value();
String subgraph() default "";
String keySubgraph() default "";
}
|
| NamedEntityGraph
@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedEntityGraph {
String name() default "";
NamedAttributeNode[] attributeNodes() default {};
boolean includeAllAttributes() default false;
NamedSubgraph[] subgraphs() default {};
NamedSubGraph[] subclassSubgraphs() default {};
}
|
| NamedNativeQuery
@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedNativeQuery {
String name();
String query();
QueryHint[] hints() default {};
Class resultClass() default void.class;
String resultSetMapping() default ""; //named SqlResultSetMapping
}
|
| NamedQuery
@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedQuery {
String name();
String query();
LockModeType lockMode() default NONE;
QueryHint[] hints() default {};
}
|
| NamedStoredProcedureQuery
@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedStoredProcedureQuery {
String name();
String procedureName();
StoredProcedureParameter[] parameters() default {};
Class[] resultClasses() default {};
String[] resultSetMappings() default{};
QueryHint[] hints() default {};
}
|
| NamedSubgraph
@Target({}) @Retention(RUNTIME)
public @interface NamedSubgraph {
String name();
Class type() default void.class;
NamedAttributeNode[] attributeNodes();
}
|
| OneToMany
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface OneToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default LAZY;
String mappedBy() default "";
}
|
| OneToOne
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface OneToOne {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default EAGER;
boolean optional() default true;
String mappedBy() default "";
boolean orphanRemoval() default false;
}
|
| OrderColumn
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface OrderColumn {
String name() default "";
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
}
|
| ParameterMode
<p>Java class for parameter-mode.
|
| Persistence
<p>Java class for anonymous complex type.
|
| Persistence.PersistenceUnit
Configuration of a persistence unit.
|
| Persistence.PersistenceUnit.Properties
<p>Java class for anonymous complex type.
|
| Persistence.PersistenceUnit.Properties.Property
<p>Java class for anonymous complex type.
|
| PersistenceUnitCachingType
<p>Java class for persistence-unit-caching-type.
|
| PersistenceUnitDefaults
These defaults are applied to the persistence unit as a whole
unless they are overridden by local annotation or XML
element settings.
|
| PersistenceUnitMetadata
Metadata that applies to the persistence unit and not just to
the mapping file in which it is contained.
|
| PersistenceUnitTransactionType
<p>Java class for persistence-unit-transaction-type.
|
| PersistenceUnitValidationModeType
<p>Java class for persistence-unit-validation-mode-type.
|
| PostLoad
@Target({METHOD}) @Retention(RUNTIME)
public @interface PostLoad {}
|
| PostPersist
@Target({METHOD}) @Retention(RUNTIME)
public @interface PostPersist {}
|
| PostRemove
@Target({METHOD}) @Retention(RUNTIME)
public @interface PostRemove {}
|
| PostUpdate
@Target({METHOD}) @Retention(RUNTIME)
public @interface PostUpdate {}
|
| PrePersist
@Target({METHOD}) @Retention(RUNTIME)
public @interface PrePersist {}
|
| PreRemove
@Target({METHOD}) @Retention(RUNTIME)
public @interface PreRemove {}
|
| PreUpdate
@Target({METHOD}) @Retention(RUNTIME)
public @interface PreUpdate {}
|
| PrimaryKeyJoinColumn
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface PrimaryKeyJoinColumn {
String name() default "";
String referencedColumnName() default "";
String columnDefinition() default "";
}
|
| QueryHint
@Target({}) @Retention(RUNTIME)
public @interface QueryHint {
String name();
String value();
}
|
| SecondaryTable
@Target({TYPE}) @Retention(RUNTIME)
public @interface SecondaryTable {
String name();
String catalog() default "";
String schema() default "";
PrimaryKeyJoinColumn[] pkJoinColumns() default {};
UniqueConstraint[] uniqueConstraints() default {};
Index[] indexes() default {};
}
|
| SequenceGenerator
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface SequenceGenerator {
String name();
String sequenceName() default "";
String catalog() default "";
String schema() default "";
int initialValue() default 1;
int allocationSize() default 50;
}
|
| SqlResultSetMapping
@Target({TYPE}) @Retention(RUNTIME)
public @interface SqlResultSetMapping {
String name();
EntityResult[] entities() default {};
ConstructorResult[] classes() default{};
ColumnResult[] columns() default {};
}
|
| StoredProcedureParameter
@Target({TYPE}) @Retention(RUNTIME)
public @interface StoredProcedureParameter {
String name() default "";
ParameterMode mode() default ParameterMode.IN;
Class type();
}
|
| Table
@Target({TYPE}) @Retention(RUNTIME)
public @interface Table {
String name() default "";
String catalog() default "";
String schema() default "";
UniqueConstraint[] uniqueConstraints() default {};
Index[] indexes() default {};
}
|
| TableGenerator
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface TableGenerator {
String name();
String table() default "";
String catalog() default "";
String schema() default "";
String pkColumnName() default "";
String valueColumnName() default "";
String pkColumnValue() default "";
int initialValue() default 0;
int allocationSize() default 50;
UniqueConstraint[] uniqueConstraints() default {};
Indexes[] indexes() default {};
}
|
| TemporalType
<p>Java class for temporal-type.
|
| Transient
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Transient {}
|
| UniqueConstraint
@Target({}) @Retention(RUNTIME)
public @interface UniqueConstraint {
String name() default "";
String[] columnNames();
}
|
| Version
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Version {}
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.