public Map < String , EmbeddableType > getEmbeddables ( Class clazz ) { Map < String , EmbeddableType > embeddableAttibutes = new HashMap < String , EmbeddableType > ( ) ; if ( entityTypes != null ) { EntityType entity = entityTypes . get ( clazz ) ; Iterator < Attribute > iter = entity . getAttributes ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Attribute attribute = iter . next ( ) ; if ( isEmbeddable ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) ) ) { embeddableAttibutes . put ( attribute . getName ( ) , embeddable ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) ) ) ; } } } return embeddableAttibutes ; }
Custom implementation to offer map of embeddables available for given entityType .