public interface ManyToOne<T> extends Child<T>, OrmManyToOneCommType<T,ManyToOne<T>,JoinColumn<ManyToOne<T>>,JoinTable<ManyToOne<T>>,CascadeType<ManyToOne<T>>>
many-to-one
xsd typeModifier and Type | Method and Description |
---|---|
JoinColumn<ManyToOne<T>> |
createJoinColumn()
Creates a new
join-column element |
ManyToOne<T> |
fetch(FetchType fetch)
Sets the
fetch attribute |
ManyToOne<T> |
fetch(String fetch)
Sets the
fetch attribute |
List<JoinColumn<ManyToOne<T>>> |
getAllJoinColumn()
Returns all
join-column elements |
FetchType |
getFetch()
Returns the
fetch attribute |
String |
getFetchAsString()
Returns the
fetch attribute |
String |
getName()
Returns the
name attribute |
CascadeType<ManyToOne<T>> |
getOrCreateCascade()
If not already created, a new
cascade element with the given value will be created. |
JoinColumn<ManyToOne<T>> |
getOrCreateJoinColumn()
If not already created, a new
join-column element will be created and returned. |
JoinTable<ManyToOne<T>> |
getOrCreateJoinTable()
If not already created, a new
join-table element with the given value will be created. |
String |
getTargetEntity()
Returns the
target-entity attribute |
Boolean |
isOptional()
Returns the
optional attribute |
ManyToOne<T> |
name(String name)
Sets the
name attribute |
ManyToOne<T> |
optional(Boolean optional)
Sets the
optional attribute |
ManyToOne<T> |
removeAllJoinColumn()
Removes all
join-column elements |
ManyToOne<T> |
removeCascade()
Removes the
cascade element |
ManyToOne<T> |
removeFetch()
Removes the
fetch attribute |
ManyToOne<T> |
removeJoinTable()
Removes the
join-table element |
ManyToOne<T> |
removeName()
Removes the
name attribute |
ManyToOne<T> |
removeOptional()
Removes the
optional attribute |
ManyToOne<T> |
removeTargetEntity()
Removes the
target-entity attribute |
ManyToOne<T> |
targetEntity(String targetEntity)
Sets the
target-entity attribute |
JoinColumn<ManyToOne<T>> getOrCreateJoinColumn()
join-column
element will be created and returned.
Otherwise, the first existing join-column
element will be returned.join-column
JoinColumn<ManyToOne<T>> createJoinColumn()
join-column
elementJoinColumn>
List<JoinColumn<ManyToOne<T>>> getAllJoinColumn()
join-column
elementsjoin-column
ManyToOne<T> removeAllJoinColumn()
join-column
elementsJoinColumn>
JoinTable<ManyToOne<T>> getOrCreateJoinTable()
join-table
element with the given value will be created.
Otherwise, the existing join-table
element will be returned.JoinTable>
ManyToOne<T> removeJoinTable()
join-table
elementManyToOne
CascadeType<ManyToOne<T>> getOrCreateCascade()
cascade
element with the given value will be created.
Otherwise, the existing cascade
element will be returned.CascadeType>
ManyToOne<T> removeCascade()
cascade
elementManyToOne
ManyToOne<T> name(String name)
name
attributename
- the value for the attribute name
ManyToOne
String getName()
name
attributename
ManyToOne<T> removeName()
name
attributeManyToOne
ManyToOne<T> targetEntity(String targetEntity)
target-entity
attributetargetEntity
- the value for the attribute target-entity
ManyToOne
String getTargetEntity()
target-entity
attributetarget-entity
ManyToOne<T> removeTargetEntity()
target-entity
attributeManyToOne
ManyToOne<T> fetch(FetchType fetch)
fetch
attributefetch
- the value for the attribute fetch
ManyToOne
ManyToOne<T> fetch(String fetch)
fetch
attributefetch
- the value for the attribute fetch
ManyToOne
FetchType getFetch()
fetch
attributefetch
String getFetchAsString()
fetch
attributefetch
ManyToOne<T> removeFetch()
fetch
attributeManyToOne
ManyToOne<T> optional(Boolean optional)
optional
attributeoptional
- the value for the attribute optional
ManyToOne
Boolean isOptional()
optional
attributeoptional
Copyright © 2020 JBoss by Red Hat. All rights reserved.