- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
/**
* Delete. *
* @param entity the entity
* @return true, if successful
*/
public boolean delete(T entity) {
boolean deleted=false;
getSession().delete(entity);
flush();
//when no hibernate runtime exception has arised...set to true.
deleted = true;
return deleted;
}