Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping

public Class JaxbHbmAnyKey

extends Object
implements Serializable, Key
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Key, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:hbm-any-key
namespace:http://www.hibernate.org/xsd/orm/mapping
propOrder:type, columns
Imports
java.io.Serializable, java.util.ArrayList, .List, jakarta.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlElement, .XmlType, org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Key

Describes the "foreign key" of a discriminated association (any, many-to-any).

Java class for hbm-any-key complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="hbm-any-key">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected List<JaxbColumn>
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<JaxbColumn>

Returns:

The value of the columns property.
getColumns
()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Key.getColumns.

Gets the value of the columns property.
public String

Returns:

possible object is String
getType
()

Gets the value of the type property.

public void
setType(String
allowed object is String
value
)

Sets the value of the type property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnsback to summary
protected List<JaxbColumn> columns
Annotations
@XmlElement
name:column
namespace:http://www.hibernate.org/xsd/orm/mapping
typeback to summary
protected String type
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping

Constructor Detail

JaxbHbmAnyKeyback to summary
public JaxbHbmAnyKey()

Method Detail

getColumnsback to summary
public List<JaxbColumn> getColumns()

Implements org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation.Key.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 Jakarta XML Binding 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 JaxbColumn

Returns:List<JaxbColumn>

The value of the columns property.

getTypeback to summary
public String getType()

Gets the value of the type property.

Returns:String

possible object is String

setTypeback to summary
public void setType(String value)

Sets the value of the type property.

Parameters
value:String

allowed object is String