Commit parcial, configurando hibernate