public void persist ( Node node ) { Object entity = node . getData ( ) ; Object id = node . getEntityId ( ) ; EntityMetadata metadata = KunderaMetadataManager . getEntityMetadata ( kunderaMetadata , node . getDataClass ( ) ) ; isUpdate = node . isUpdate ( ) ; List < RelationHolder > relationHolders = getRelationHolders ( node ) ; onPersist ( metadata , entity , id , relationHolders ) ; id = PropertyAccessorHelper . getId ( entity , metadata ) ; node . setEntityId ( id ) ; indexNode ( node , metadata ) ; }
Method to handle