HHH-14529 Add a common interface for Jaxb representations of associations
This commit is contained in:
parent
437af3b4da
commit
10aee2a9fa
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
|
||||||
|
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
|
||||||
|
*/
|
||||||
|
package org.hibernate.boot.jaxb.mapping.spi;
|
||||||
|
|
||||||
|
public interface AssociationAttribute extends PersistentAttribute, FetchableAttribute {
|
||||||
|
|
||||||
|
JaxbJoinTable getJoinTable();
|
||||||
|
|
||||||
|
void setJoinTable(JaxbJoinTable value);
|
||||||
|
|
||||||
|
JaxbCascadeType getCascade();
|
||||||
|
|
||||||
|
void setCascade(JaxbCascadeType value);
|
||||||
|
|
||||||
|
String getTargetEntity();
|
||||||
|
|
||||||
|
void setTargetEntity(String value);
|
||||||
|
|
||||||
|
}
|
|
@ -127,14 +127,17 @@
|
||||||
<bindings node="//xsd:complexType[@name='many-to-one']">
|
<bindings node="//xsd:complexType[@name='many-to-one']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.FetchableAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.FetchableAttribute</inheritance:implements>
|
||||||
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.AssociationAttribute</inheritance:implements>
|
||||||
</bindings>
|
</bindings>
|
||||||
<bindings node="//xsd:complexType[@name='one-to-many']">
|
<bindings node="//xsd:complexType[@name='one-to-many']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.CollectionAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.CollectionAttribute</inheritance:implements>
|
||||||
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.AssociationAttribute</inheritance:implements>
|
||||||
</bindings>
|
</bindings>
|
||||||
<bindings node="//xsd:complexType[@name='one-to-one']">
|
<bindings node="//xsd:complexType[@name='one-to-one']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.FetchableAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.FetchableAttribute</inheritance:implements>
|
||||||
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.AssociationAttribute</inheritance:implements>
|
||||||
</bindings>
|
</bindings>
|
||||||
<bindings node="//xsd:complexType[@name='embedded-id']">
|
<bindings node="//xsd:complexType[@name='embedded-id']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
|
@ -145,6 +148,7 @@
|
||||||
<bindings node="//xsd:complexType[@name='many-to-many']">
|
<bindings node="//xsd:complexType[@name='many-to-many']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.CollectionAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.CollectionAttribute</inheritance:implements>
|
||||||
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.AssociationAttribute</inheritance:implements>
|
||||||
</bindings>
|
</bindings>
|
||||||
<bindings node="//xsd:complexType[@name='element-collection']">
|
<bindings node="//xsd:complexType[@name='element-collection']">
|
||||||
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
<inheritance:implements>org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute</inheritance:implements>
|
||||||
|
|
Loading…
Reference in New Issue