[hibernate-dev] Exception handling in hibernate

2014-11-11 Thread Sujit.Dhaygude
Hi , we have a requirement to point a record for which the actual batch flush/commit has failed. Is there a generic way by which hibernate can be hooked up for exception scenario to pull back the actual entity for which DB/Hibernate Error has occurred . Most of the times we could see the hiberna

[hibernate-dev] Hibernate invkoing onFlushDirty for umodified objects in Set

2014-11-11 Thread Nitin G. Prabhu
Hi All, I have a object with below relationship public class A { @Id @SequenceGenerator(name = "ID_GENERATOR", sequenceName = "Id_SEQ", allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_GENERATOR") @Column(name = "id") p