private static boolean hasNewMappedByAttrs ( EntityType entityType , EntityType existingEntityType ) { Set < String > mappedByAttrs = entityType . getOwnMappedByAttributes ( ) . map ( Attribute :: getName ) . collect ( toSet ( ) ) ; Set < String > existingMappedByAttrs = existingEntityType . getOwnMappedByAttributes ( ) . map ( Attribute :: getName ) . collect ( toSet ( ) ) ; return ! mappedByAttrs . equals ( existingMappedByAttrs ) ; }
Returns true if entity meta contains mapped by attributes that do not exist in the existing entity meta .