Class JaxbOneToOne
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.spi.JaxbOneToOne
-
- All Implemented Interfaces:
java.io.Serializable,AssociationAttribute,FetchableAttribute,PersistentAttribute
public class JaxbOneToOne extends java.lang.Object implements java.io.Serializable, AssociationAttribute, FetchableAttribute, PersistentAttribute
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTypeaccessprotected JaxbCascadeTypecascadeprotected FetchTypefetchprotected JaxbForeignKeyforeignKeyprotected java.lang.Booleanidprotected java.util.List<JaxbJoinColumn>joinColumnprotected JaxbJoinTablejoinTableprotected java.lang.StringmappedByprotected java.lang.StringmapsIdprotected java.lang.Stringnameprotected java.lang.Booleanoptionalprotected java.lang.BooleanorphanRemovalprotected JaxbForeignKeyprimaryKeyForeignKeyprotected java.util.List<JaxbPrimaryKeyJoinColumn>primaryKeyJoinColumnprotected java.lang.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.JaxbCascadeTypegetCascade()Gets the value of the cascade property.FetchTypegetFetch()Gets the value of the fetch property.JaxbForeignKeygetForeignKey()Gets the value of the foreignKey property.java.util.List<JaxbJoinColumn>getJoinColumn()Gets the value of the joinColumn property.JaxbJoinTablegetJoinTable()Gets the value of the joinTable property.java.lang.StringgetMappedBy()Gets the value of the mappedBy property.java.lang.StringgetMapsId()Gets the value of the mapsId property.java.lang.StringgetName()Gets the value of the name property.JaxbForeignKeygetPrimaryKeyForeignKey()Gets the value of the primaryKeyForeignKey property.java.util.List<JaxbPrimaryKeyJoinColumn>getPrimaryKeyJoinColumn()Gets the value of the primaryKeyJoinColumn property.java.lang.StringgetTargetEntity()Gets the value of the targetEntity property.java.lang.BooleanisId()Gets the value of the id property.java.lang.BooleanisOptional()Gets the value of the optional property.java.lang.BooleanisOrphanRemoval()Gets the value of the orphanRemoval property.voidsetAccess(AccessType value)Sets the value of the access property.voidsetCascade(JaxbCascadeType value)Sets the value of the cascade property.voidsetFetch(FetchType value)Sets the value of the fetch property.voidsetForeignKey(JaxbForeignKey value)Sets the value of the foreignKey property.voidsetId(java.lang.Boolean value)Sets the value of the id property.voidsetJoinTable(JaxbJoinTable value)Sets the value of the joinTable property.voidsetMappedBy(java.lang.String value)Sets the value of the mappedBy property.voidsetMapsId(java.lang.String value)Sets the value of the mapsId property.voidsetName(java.lang.String value)Sets the value of the name property.voidsetOptional(java.lang.Boolean value)Sets the value of the optional property.voidsetOrphanRemoval(java.lang.Boolean value)Sets the value of the orphanRemoval property.voidsetPrimaryKeyForeignKey(JaxbForeignKey value)Sets the value of the primaryKeyForeignKey property.voidsetTargetEntity(java.lang.String value)Sets the value of the targetEntity property.
-
-
-
Field Detail
-
primaryKeyJoinColumn
protected java.util.List<JaxbPrimaryKeyJoinColumn> primaryKeyJoinColumn
-
primaryKeyForeignKey
protected JaxbForeignKey primaryKeyForeignKey
-
joinColumn
protected java.util.List<JaxbJoinColumn> joinColumn
-
foreignKey
protected JaxbForeignKey foreignKey
-
joinTable
protected JaxbJoinTable joinTable
-
cascade
protected JaxbCascadeType cascade
-
name
protected java.lang.String name
-
targetEntity
protected java.lang.String targetEntity
-
fetch
protected FetchType fetch
-
optional
protected java.lang.Boolean optional
-
access
protected AccessType access
-
mappedBy
protected java.lang.String mappedBy
-
orphanRemoval
protected java.lang.Boolean orphanRemoval
-
mapsId
protected java.lang.String mapsId
-
id
protected java.lang.Boolean id
-
-
Method Detail
-
getPrimaryKeyJoinColumn
public java.util.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 JAXB 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
-
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 java.util.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 JAXB 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
-
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 java.lang.String getName()
Gets the value of the name property.- Specified by:
getNamein interfacePersistentAttribute- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getTargetEntity
public java.lang.String getTargetEntity()
Gets the value of the targetEntity property.- Specified by:
getTargetEntityin interfaceAssociationAttribute- Returns:
- possible object is
String
-
setTargetEntity
public void setTargetEntity(java.lang.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
-
isOptional
public java.lang.Boolean isOptional()
Gets the value of the optional property.- Returns:
- possible object is
Boolean
-
setOptional
public void setOptional(java.lang.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
-
getMappedBy
public java.lang.String getMappedBy()
Gets the value of the mappedBy property.- Returns:
- possible object is
String
-
setMappedBy
public void setMappedBy(java.lang.String value)
Sets the value of the mappedBy property.- Parameters:
value- allowed object isString
-
isOrphanRemoval
public java.lang.Boolean isOrphanRemoval()
Gets the value of the orphanRemoval property.- Returns:
- possible object is
Boolean
-
setOrphanRemoval
public void setOrphanRemoval(java.lang.Boolean value)
Sets the value of the orphanRemoval property.- Parameters:
value- allowed object isBoolean
-
getMapsId
public java.lang.String getMapsId()
Gets the value of the mapsId property.- Returns:
- possible object is
String
-
setMapsId
public void setMapsId(java.lang.String value)
Sets the value of the mapsId property.- Parameters:
value- allowed object isString
-
isId
public java.lang.Boolean isId()
Gets the value of the id property.- Returns:
- possible object is
Boolean
-
setId
public void setId(java.lang.Boolean value)
Sets the value of the id property.- Parameters:
value- allowed object isBoolean
-
-