|
122 | 122 | import org.jboss.logging.Logger;
|
123 | 123 |
|
124 | 124 | import org.hibernate.AnnotationException;
|
| 125 | +import org.hibernate.annotations.Any; |
125 | 126 | import org.hibernate.annotations.Cascade;
|
126 | 127 | import org.hibernate.annotations.Columns;
|
| 128 | +import org.hibernate.annotations.ManyToAny; |
127 | 129 | import org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor;
|
128 | 130 | import org.hibernate.annotations.common.annotationfactory.AnnotationFactory;
|
129 | 131 | import org.hibernate.annotations.common.reflection.AnnotationReader;
|
@@ -205,6 +207,8 @@ public boolean returnTransient() {
|
205 | 207 | annotationToXml.put( OneToOne.class, "one-to-one" );
|
206 | 208 | annotationToXml.put( OneToMany.class, "one-to-many" );
|
207 | 209 | annotationToXml.put( ManyToMany.class, "many-to-many" );
|
| 210 | + annotationToXml.put( Any.class, "any" ); |
| 211 | + annotationToXml.put( ManyToAny.class, "many-to-any" ); |
208 | 212 | annotationToXml.put( JoinTable.class, "join-table" );
|
209 | 213 | annotationToXml.put( JoinColumn.class, "join-column" );
|
210 | 214 | annotationToXml.put( JoinColumns.class, "join-column" );
|
@@ -396,6 +400,8 @@ else if ( className != null ) { //&& propertyName != null ) { //always true but
|
396 | 400 | getAssociation( OneToOne.class, annotationList, defaults );
|
397 | 401 | getAssociation( OneToMany.class, annotationList, defaults );
|
398 | 402 | getAssociation( ManyToMany.class, annotationList, defaults );
|
| 403 | + getAssociation( Any.class, annotationList, defaults ); |
| 404 | + getAssociation( ManyToAny.class, annotationList, defaults ); |
399 | 405 | getElementCollection( annotationList, defaults );
|
400 | 406 | addIfNotNull( annotationList, getSequenceGenerator( elementsForProperty, defaults ) );
|
401 | 407 | addIfNotNull( annotationList, getTableGenerator( elementsForProperty, defaults ) );
|
|
0 commit comments