Class JaxbAnyMappingKeyImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbAnyMappingKeyImpl
- All Implemented Interfaces:
Serializable
,JaxbAnyMapping.Key
Describes the "foreign key" of a discriminated association (any, many-to-any).
Java class for any-key complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="any-key">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="java-class" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</choice>
<element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the columns property.Gets the value of the javaClass property.getType()
Gets the value of the type property.void
setJavaClass
(String value) Sets the value of the javaClass property.void
Sets the value of the type property.
-
Field Details
-
type
-
javaClass
-
columns
-
-
Constructor Details
-
JaxbAnyMappingKeyImpl
public JaxbAnyMappingKeyImpl()
-
-
Method Details
-
getType
Gets the value of the type property.- Specified by:
getType
in interfaceJaxbAnyMapping.Key
- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value
- allowed object isString
-
getJavaClass
Gets the value of the javaClass property.- Specified by:
getJavaClass
in interfaceJaxbAnyMapping.Key
- Returns:
- possible object is
String
-
setJavaClass
Sets the value of the javaClass property.- Parameters:
value
- allowed object isString
-
getColumns
Gets the value of the columns 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
set
method for the columns property.For example, to add a new item, do as follows:
getColumns().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbColumnImpl
- Specified by:
getColumns
in interfaceJaxbAnyMapping.Key
- Returns:
- The value of the columns property.
-