public static boolean isFindKeyOnly ( EntityMetadata metadata , List < Map < String , Object > > colToOutput ) { if ( colToOutput != null && colToOutput . size ( ) == 1 ) { String idCol = ( ( AbstractAttribute ) metadata . getIdAttribute ( ) ) . getJPAColumnName ( ) ; return idCol . equals ( colToOutput . get ( 0 ) . get ( Constants . DB_COL_NAME ) ) && ! ( boolean ) colToOutput . get ( 0 ) . get ( Constants . IS_EMBEDDABLE ) ; } else { return false ; } }
Checks if is find key only .