public static Set < String > getKeyPropertyNames ( EntityType entityType ) { Set < String > keyPropertyNames = entityType . getKey ( ) . getPropertyRefs ( ) . stream ( ) . map ( PropertyRef :: getPath ) . collect ( Collectors . toSet ( ) ) ; return keyPropertyNames ; }
Gets the names of the properties that are part of the key of an entity type .