
public interface OneToOne<T> extends Child<T>, OrmOneToOneCommType<T,OneToOne<T>,PrimaryKeyJoinColumn<OneToOne<T>>,JoinColumn<OneToOne<T>>,JoinTable<OneToOne<T>>,CascadeType<OneToOne<T>>>
one-to-one xsd type| Modifier and Type | Method and Description |
|---|---|
OneToOne<T> |
access(AccessType access)
Sets the
access attribute |
OneToOne<T> |
access(String access)
Sets the
access attribute |
JoinColumn<OneToOne<T>> |
createJoinColumn()
Creates a new
join-column element |
PrimaryKeyJoinColumn<OneToOne<T>> |
createPrimaryKeyJoinColumn()
Creates a new
primary-key-join-column element |
OneToOne<T> |
fetch(FetchType fetch)
Sets the
fetch attribute |
OneToOne<T> |
fetch(String fetch)
Sets the
fetch attribute |
AccessType |
getAccess()
Returns the
access attribute |
String |
getAccessAsString()
Returns the
access attribute |
List<JoinColumn<OneToOne<T>>> |
getAllJoinColumn()
Returns all
join-column elements |
List<PrimaryKeyJoinColumn<OneToOne<T>>> |
getAllPrimaryKeyJoinColumn()
Returns all
primary-key-join-column elements |
FetchType |
getFetch()
Returns the
fetch attribute |
String |
getFetchAsString()
Returns the
fetch attribute |
String |
getMappedBy()
Returns the
mapped-by attribute |
String |
getMapsId()
Returns the
maps-id attribute |
String |
getName()
Returns the
name attribute |
CascadeType<OneToOne<T>> |
getOrCreateCascade()
If not already created, a new
cascade element with the given value will be created. |
ForeignKey<OneToOne<T>> |
getOrCreateForeignKey()
If not already created, a new
foreign-key element with the given value will be created. |
JoinColumn<OneToOne<T>> |
getOrCreateJoinColumn()
If not already created, a new
join-column element will be created and returned. |
JoinTable<OneToOne<T>> |
getOrCreateJoinTable()
If not already created, a new
join-table element with the given value will be created. |
ForeignKey<OneToOne<T>> |
getOrCreatePrimaryKeyForeignKey()
If not already created, a new
primary-key-foreign-key element with the given value will be created. |
PrimaryKeyJoinColumn<OneToOne<T>> |
getOrCreatePrimaryKeyJoinColumn()
If not already created, a new
primary-key-join-column element will be created and returned. |
String |
getTargetEntity()
Returns the
target-entity attribute |
OneToOne<T> |
id(Boolean id)
Sets the
id attribute |
Boolean |
isId()
Returns the
id attribute |
Boolean |
isOptional()
Returns the
optional attribute |
Boolean |
isOrphanRemoval()
Returns the
orphan-removal attribute |
OneToOne<T> |
mappedBy(String mappedBy)
Sets the
mapped-by attribute |
OneToOne<T> |
mapsId(String mapsId)
Sets the
maps-id attribute |
OneToOne<T> |
name(String name)
Sets the
name attribute |
OneToOne<T> |
optional(Boolean optional)
Sets the
optional attribute |
OneToOne<T> |
orphanRemoval(Boolean orphanRemoval)
Sets the
orphan-removal attribute |
OneToOne<T> |
removeAccess()
Removes the
access attribute |
OneToOne<T> |
removeAllJoinColumn()
Removes all
join-column elements |
OneToOne<T> |
removeAllPrimaryKeyJoinColumn()
Removes all
primary-key-join-column elements |
OneToOne<T> |
removeCascade()
Removes the
cascade element |
OneToOne<T> |
removeFetch()
Removes the
fetch attribute |
OneToOne<T> |
removeForeignKey()
Removes the
foreign-key element |
OneToOne<T> |
removeId()
Removes the
id attribute |
OneToOne<T> |
removeJoinTable()
Removes the
join-table element |
OneToOne<T> |
removeMappedBy()
Removes the
mapped-by attribute |
OneToOne<T> |
removeMapsId()
Removes the
maps-id attribute |
OneToOne<T> |
removeName()
Removes the
name attribute |
OneToOne<T> |
removeOptional()
Removes the
optional attribute |
OneToOne<T> |
removeOrphanRemoval()
Removes the
orphan-removal attribute |
OneToOne<T> |
removePrimaryKeyForeignKey()
Removes the
primary-key-foreign-key element |
OneToOne<T> |
removeTargetEntity()
Removes the
target-entity attribute |
OneToOne<T> |
targetEntity(String targetEntity)
Sets the
target-entity attribute |
PrimaryKeyJoinColumn<OneToOne<T>> getOrCreatePrimaryKeyJoinColumn()
primary-key-join-column element will be created and returned.
Otherwise, the first existing primary-key-join-column element will be returned.primary-key-join-columnPrimaryKeyJoinColumn<OneToOne<T>> createPrimaryKeyJoinColumn()
primary-key-join-column elementPrimaryKeyJoinColumn> List<PrimaryKeyJoinColumn<OneToOne<T>>> getAllPrimaryKeyJoinColumn()
primary-key-join-column elementsprimary-key-join-columnOneToOne<T> removeAllPrimaryKeyJoinColumn()
primary-key-join-column elementsPrimaryKeyJoinColumn> ForeignKey<OneToOne<T>> getOrCreatePrimaryKeyForeignKey()
primary-key-foreign-key element with the given value will be created.
Otherwise, the existing primary-key-foreign-key element will be returned.ForeignKey> OneToOne<T> removePrimaryKeyForeignKey()
primary-key-foreign-key elementOneToOneJoinColumn<OneToOne<T>> getOrCreateJoinColumn()
join-column element will be created and returned.
Otherwise, the first existing join-column element will be returned.join-columnJoinColumn<OneToOne<T>> createJoinColumn()
join-column elementJoinColumn> List<JoinColumn<OneToOne<T>>> getAllJoinColumn()
join-column elementsjoin-columnOneToOne<T> removeAllJoinColumn()
join-column elementsJoinColumn> ForeignKey<OneToOne<T>> getOrCreateForeignKey()
foreign-key element with the given value will be created.
Otherwise, the existing foreign-key element will be returned.ForeignKey> OneToOne<T> removeForeignKey()
foreign-key elementOneToOneJoinTable<OneToOne<T>> getOrCreateJoinTable()
join-table element with the given value will be created.
Otherwise, the existing join-table element will be returned.JoinTable> OneToOne<T> removeJoinTable()
join-table elementOneToOneCascadeType<OneToOne<T>> getOrCreateCascade()
cascade element with the given value will be created.
Otherwise, the existing cascade element will be returned.CascadeType> OneToOne<T> removeCascade()
cascade elementOneToOneOneToOne<T> name(String name)
name attributename - the value for the attribute nameOneToOneString getName()
name attributenameOneToOne<T> removeName()
name attributeOneToOneOneToOne<T> targetEntity(String targetEntity)
target-entity attributetargetEntity - the value for the attribute target-entityOneToOneString getTargetEntity()
target-entity attributetarget-entityOneToOne<T> removeTargetEntity()
target-entity attributeOneToOneOneToOne<T> fetch(FetchType fetch)
fetch attributefetch - the value for the attribute fetchOneToOneOneToOne<T> fetch(String fetch)
fetch attributefetch - the value for the attribute fetchOneToOneFetchType getFetch()
fetch attributefetchString getFetchAsString()
fetch attributefetchOneToOne<T> removeFetch()
fetch attributeOneToOneOneToOne<T> optional(Boolean optional)
optional attributeoptional - the value for the attribute optionalOneToOneBoolean isOptional()
optional attributeoptionalOneToOne<T> removeOptional()
optional attributeOneToOneOneToOne<T> access(AccessType access)
access attributeaccess - the value for the attribute accessOneToOneOneToOne<T> access(String access)
access attributeaccess - the value for the attribute accessOneToOneAccessType getAccess()
access attributeaccessString getAccessAsString()
access attributeaccessOneToOne<T> removeAccess()
access attributeOneToOneOneToOne<T> mappedBy(String mappedBy)
mapped-by attributemappedBy - the value for the attribute mapped-byOneToOneString getMappedBy()
mapped-by attributemapped-byOneToOne<T> removeMappedBy()
mapped-by attributeOneToOneOneToOne<T> orphanRemoval(Boolean orphanRemoval)
orphan-removal attributeorphanRemoval - the value for the attribute orphan-removalOneToOneBoolean isOrphanRemoval()
orphan-removal attributeorphan-removalOneToOne<T> removeOrphanRemoval()
orphan-removal attributeOneToOneOneToOne<T> mapsId(String mapsId)
maps-id attributemapsId - the value for the attribute maps-idOneToOneString getMapsId()
maps-id attributemaps-idOneToOne<T> removeMapsId()
maps-id attributeOneToOneOneToOne<T> id(Boolean id)
id attributeid - the value for the attribute idOneToOneBoolean isId()
id attributeidCopyright © 2025 JBoss by Red Hat. All rights reserved.