mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
Fixed @Any and @ManyToAny support in overridden JPA annotation reader HHH-4261
This commit is contained in:
parent
519a469b11
commit
ff22f64bae
@ -132,8 +132,10 @@
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import org.hibernate.AnnotationException;
|
||||
import org.hibernate.annotations.Any;
|
||||
import org.hibernate.annotations.Cascade;
|
||||
import org.hibernate.annotations.Columns;
|
||||
import org.hibernate.annotations.ManyToAny;
|
||||
import org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor;
|
||||
import org.hibernate.annotations.common.annotationfactory.AnnotationFactory;
|
||||
import org.hibernate.annotations.common.reflection.AnnotationReader;
|
||||
@ -219,6 +221,8 @@ public boolean returnTransient() {
|
||||
annotationToXml.put( OneToOne.class, "one-to-one" );
|
||||
annotationToXml.put( OneToMany.class, "one-to-many" );
|
||||
annotationToXml.put( ManyToMany.class, "many-to-many" );
|
||||
annotationToXml.put( Any.class, "any" );
|
||||
annotationToXml.put( ManyToAny.class, "many-to-any" );
|
||||
annotationToXml.put( JoinTable.class, "join-table" );
|
||||
annotationToXml.put( JoinColumn.class, "join-column" );
|
||||
annotationToXml.put( JoinColumns.class, "join-column" );
|
||||
@ -414,6 +418,8 @@ else if ( className != null ) { //&& propertyName != null ) { //always true but
|
||||
getAssociation( OneToOne.class, annotationList, defaults );
|
||||
getAssociation( OneToMany.class, annotationList, defaults );
|
||||
getAssociation( ManyToMany.class, annotationList, defaults );
|
||||
getAssociation( Any.class, annotationList, defaults );
|
||||
getAssociation( ManyToAny.class, annotationList, defaults );
|
||||
getElementCollection( annotationList, defaults );
|
||||
addIfNotNull( annotationList, getSequenceGenerator( elementsForProperty, defaults ) );
|
||||
addIfNotNull( annotationList, getTableGenerator( elementsForProperty, defaults ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user