Wednesday, July 20, 2011

Quartz Scheduler - Documentation - Cookbook - Update an existing job

Quartz Scheduler - Documentation - Cookbook - Updating a trigger

Tuesday, July 19, 2011

Struts 1.3 Error Handling

struts-config.xml



  
  
      
         
         
      
  

  

    
    
        
    

Code formatting on blogger.com | thehurley.com

Friday, July 15, 2011

java - JPA CascadeType.ALL does not delete orphans. - Stack Overflow

java - JPA CascadeType.ALL does not delete orphans. - Stack Overflow: "If you are using it with Hibernate, you'll have to explicitly define org.hibernate.annotations.CascadeType.DELETE_ORPHAN, which can be used in conjunction with JPA CascadeType.ALL.

If you don't plan to use Hibernate, you'll have to explicitly first delete the child elements and then delete the main record to avoid any orphan records.

execution sequence

fetch main row to be deleted
fetch child elements
delete all child elements
delete main row
close session"

Labels: