| Package | Description |
|---|---|
| org.apache.openejb.jee.jpa |
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ManyToMany
Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ManyToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default LAZY;
String mappedBy() default "";
}
|
class |
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;
}
|
class |
OneToMany
Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface OneToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default LAZY;
String mappedBy() default "";
}
|
class |
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;
}
|
| Modifier and Type | Field and Description |
|---|---|
protected RelationField |
OneToMany.relatedField |
protected RelationField |
ManyToOne.relatedField |
protected RelationField |
ManyToMany.relatedField |
protected RelationField |
OneToOne.relatedField |
| Modifier and Type | Method and Description |
|---|---|
RelationField |
OneToMany.getRelatedField()
This is only used for xml converters and will normally return null.
|
RelationField |
ManyToOne.getRelatedField()
This is only used for xml converters and will normally return null.
|
RelationField |
ManyToMany.getRelatedField()
This is only used for xml converters and will normally return null.
|
RelationField |
OneToOne.getRelatedField()
This is only used for xml converters and will normally return null.
|
RelationField |
RelationField.getRelatedField()
This is only used for xml converters and will normally return null.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,RelationField> |
Attributes.getRelationshipFieldMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
OneToMany.setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
void |
ManyToOne.setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
void |
ManyToMany.setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
void |
OneToOne.setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
void |
RelationField.setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.