1. Java / Говнокод #5010

    +82

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 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;
    }

    Our lovely tech lead has written this

    Запостил: vovano, 21 Декабря 2010

    Комментарии (4) RSS

    Добавить комментарий