@ Override public T delete ( final T t ) { return inTransaction ( new Callable < T > ( ) { @ Override public T call ( ) throws Exception { T attached = getAttached ( t ) ; if ( attached != null ) { entityManager . remove ( attached ) ; } return t ; } } ) ; }
Deletes the given entity instance . The instance is removed from the persistent layer .