Examples of MapKey


Examples of org.hibernate.annotations.MapKey

            column.setTable( mapValue.getCollectionTable() );
          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          MapKey mapKeyAnn = property.getAnnotation( org.hibernate.annotations.MapKey.class );
          elementBinder.setKey(true);
          if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) {
            elementBinder.setExplicitType( mapKeyAnn.type() );
          }
          else {
            elementBinder.setType( property, elementClass );
          }
          mapValue.setIndex( elementBinder.make() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.