public static boolean isBasicElementCollectionField ( Field collectionField ) { if ( ! Collection . class . isAssignableFrom ( collectionField . getType ( ) ) && ! Map . class . isAssignableFrom ( collectionField . getType ( ) ) ) { return false ; } List < Class < ? > > genericClasses = PropertyAccessorHelper . getGenericClasses ( collectionField ) ; for ( Class genericClass : genericClasses ) { if ( genericClass . getAnnotation ( Embeddable . class ) != null ) { return false ; } } return true ; }
Checks whether a given field is Element collection field of BASIC type