Class JaxbOneToOne
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbOneToOne
-
- All Implemented Interfaces:
Serializable,AssociationAttribute,FetchableAttribute,PersistentAttribute,ToOneAttribute
public class JaxbOneToOne extends Object implements Serializable, ToOneAttribute
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTypeaccessprotected StringattributeAccessorprotected JaxbCascadeTypecascadeprotected FetchTypefetchprotected JaxbSingularFetchModefetchModeprotected JaxbForeignKeyforeignKeyprotected Booleanidprotected List<JaxbJoinColumn>joinColumnprotected JaxbJoinTablejoinTableprotected StringmappedByprotected StringmapsIdprotected Stringnameprotected Booleanoptionalprotected BooleanorphanRemovalprotected JaxbForeignKeyprimaryKeyForeignKeyprotected List<JaxbPrimaryKeyJoinColumn>primaryKeyJoinColumnprotected StringtargetEntity
-
Constructor Summary
Constructors Constructor Description JaxbOneToOne()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccess()Gets the value of the access property.StringgetAttributeAccessor()Gets the value of the attributeAccessor property.JaxbCascadeTypegetCascade()Gets the value of the cascade property.FetchTypegetFetch()Gets the value of the fetch property.JaxbSingularFetchModegetFetchMode()Gets the value of the fetchMode property.JaxbForeignKeygetForeignKey()Gets the value of the foreignKey property.List<JaxbJoinColumn>getJoinColumn()Gets the value of the joinColumn property.JaxbJoinTablegetJoinTable()Gets the value of the joinTable property.StringgetMappedBy()Gets the value of the mappedBy property.StringgetMapsId()Gets the value of the mapsId property.StringgetName()Gets the value of the name property.JaxbForeignKeygetPrimaryKeyForeignKey()Gets the value of the primaryKeyForeignKey property.List<JaxbPrimaryKeyJoinColumn>getPrimaryKeyJoinColumn()Gets the value of the primaryKeyJoinColumn property.StringgetTargetEntity()Gets the value of the targetEntity property.BooleanisId()Gets the value of the id property.BooleanisOptional()Gets the value of the optional property.BooleanisOrphanRemoval()Gets the value of the orphanRemoval property.voidsetAccess(AccessType value)Sets the value of the access property.voidsetAttributeAccessor(String value)Sets the value of the attributeAccessor property.voidsetCascade(JaxbCascadeType value)Sets the value of the cascade property.voidsetFetch(FetchType value)Sets the value of the fetch property.voidsetFetchMode(JaxbSingularFetchMode value)Sets the value of the fetchMode property.voidsetForeignKey(JaxbForeignKey value)Sets the value of the foreignKey property.voidsetId(Boolean value)Sets the value of the id property.voidsetJoinTable(JaxbJoinTable value)Sets the value of the joinTable property.voidsetMappedBy(String value)Sets the value of the mappedBy property.voidsetMapsId(String value)Sets the value of the mapsId property.voidsetName(String value)Sets the value of the name property.voidsetOptional(Boolean value)Sets the value of the optional property.voidsetOrphanRemoval(Boolean value)Sets the value of the orphanRemoval property.voidsetPrimaryKeyForeignKey(JaxbForeignKey value)Sets the value of the primaryKeyForeignKey property.voidsetTargetEntity(String value)Sets the value of the targetEntity property.
-
-
-
Field Detail
-
primaryKeyJoinColumn
protected List<JaxbPrimaryKeyJoinColumn> primaryKeyJoinColumn
-
primaryKeyForeignKey
protected JaxbForeignKey primaryKeyForeignKey
-
joinColumn
protected List<JaxbJoinColumn> joinColumn
-
foreignKey
protected JaxbForeignKey foreignKey
-
joinTable
protected JaxbJoinTable joinTable
-
cascade
protected JaxbCascadeType cascade
-
name
protected String name
-
targetEntity
protected String targetEntity
-
fetch
protected FetchType fetch
-
fetchMode
protected JaxbSingularFetchMode fetchMode
-
optional
protected Boolean optional
-
access
protected AccessType access
-
attributeAccessor
protected String attributeAccessor
-
mappedBy
protected String mappedBy
-
orphanRemoval
protected Boolean orphanRemoval
-
mapsId
protected String mapsId
-
id
protected Boolean id
-
-
Method Detail
-
getPrimaryKeyJoinColumn
public List<JaxbPrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the primaryKeyJoinColumn property.For example, to add a new item, do as follows:
getPrimaryKeyJoinColumn().add(newItem);Objects of the following type(s) are allowed in the list
JaxbPrimaryKeyJoinColumn- Returns:
- The value of the primaryKeyJoinColumn property.
-
getPrimaryKeyForeignKey
public JaxbForeignKey getPrimaryKeyForeignKey()
Gets the value of the primaryKeyForeignKey property.- Returns:
- possible object is
JaxbForeignKey
-
setPrimaryKeyForeignKey
public void setPrimaryKeyForeignKey(JaxbForeignKey value)
Sets the value of the primaryKeyForeignKey property.- Parameters:
value- allowed object isJaxbForeignKey
-
getJoinColumn
public List<JaxbJoinColumn> getJoinColumn()
Gets the value of the joinColumn property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the joinColumn property.For example, to add a new item, do as follows:
getJoinColumn().add(newItem);Objects of the following type(s) are allowed in the list
JaxbJoinColumn- Returns:
- The value of the joinColumn property.
-
getForeignKey
public JaxbForeignKey getForeignKey()
Gets the value of the foreignKey property.- Returns:
- possible object is
JaxbForeignKey
-
setForeignKey
public void setForeignKey(JaxbForeignKey value)
Sets the value of the foreignKey property.- Parameters:
value- allowed object isJaxbForeignKey
-
getJoinTable
public JaxbJoinTable getJoinTable()
Gets the value of the joinTable property.- Specified by:
getJoinTablein interfaceAssociationAttribute- Returns:
- possible object is
JaxbJoinTable
-
setJoinTable
public void setJoinTable(JaxbJoinTable value)
Sets the value of the joinTable property.- Specified by:
setJoinTablein interfaceAssociationAttribute- Parameters:
value- allowed object isJaxbJoinTable
-
getCascade
public JaxbCascadeType getCascade()
Gets the value of the cascade property.- Specified by:
getCascadein interfaceAssociationAttribute- Returns:
- possible object is
JaxbCascadeType
-
setCascade
public void setCascade(JaxbCascadeType value)
Sets the value of the cascade property.- Specified by:
setCascadein interfaceAssociationAttribute- Parameters:
value- allowed object isJaxbCascadeType
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getNamein interfacePersistentAttribute- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setNamein interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getTargetEntity
public String getTargetEntity()
Gets the value of the targetEntity property.- Specified by:
getTargetEntityin interfaceAssociationAttribute- Returns:
- possible object is
String
-
setTargetEntity
public void setTargetEntity(String value)
Sets the value of the targetEntity property.- Specified by:
setTargetEntityin interfaceAssociationAttribute- Parameters:
value- allowed object isString
-
getFetch
public FetchType getFetch()
Gets the value of the fetch property.- Specified by:
getFetchin interfaceFetchableAttribute- Returns:
- possible object is
String
-
setFetch
public void setFetch(FetchType value)
Sets the value of the fetch property.- Specified by:
setFetchin interfaceFetchableAttribute- Parameters:
value- allowed object isString
-
getFetchMode
public JaxbSingularFetchMode getFetchMode()
Gets the value of the fetchMode property.- Specified by:
getFetchModein interfaceToOneAttribute- Returns:
- possible object is
JaxbSingularFetchMode
-
setFetchMode
public void setFetchMode(JaxbSingularFetchMode value)
Sets the value of the fetchMode property.- Specified by:
setFetchModein interfaceToOneAttribute- Parameters:
value- allowed object isJaxbSingularFetchMode
-
isOptional
public Boolean isOptional()
Gets the value of the optional property.- Returns:
- possible object is
Boolean
-
setOptional
public void setOptional(Boolean value)
Sets the value of the optional property.- Parameters:
value- allowed object isBoolean
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccessin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Specified by:
setAccessin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessorin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessorin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getMappedBy
public String getMappedBy()
Gets the value of the mappedBy property.- Returns:
- possible object is
String
-
setMappedBy
public void setMappedBy(String value)
Sets the value of the mappedBy property.- Parameters:
value- allowed object isString
-
isOrphanRemoval
public Boolean isOrphanRemoval()
Gets the value of the orphanRemoval property.- Returns:
- possible object is
Boolean
-
setOrphanRemoval
public void setOrphanRemoval(Boolean value)
Sets the value of the orphanRemoval property.- Parameters:
value- allowed object isBoolean
-
getMapsId
public String getMapsId()
Gets the value of the mapsId property.- Returns:
- possible object is
String
-
setMapsId
public void setMapsId(String value)
Sets the value of the mapsId property.- Parameters:
value- allowed object isString
-
-