@ SuppressWarnings ( "unchecked" ) public < T > T trackEntity ( Class < T > clazz , DocumentInfo documentFound ) { return ( T ) trackEntity ( clazz , documentFound . getId ( ) , documentFound . getDocument ( ) , documentFound . getMetadata ( ) , noTracking ) ; }
Tracks the entity inside the unit of work