Hibernate version:2.1.7
Hi.
Is it normal that when persisting new object, it's ID gets generated regardless of exception being raised because of some constraint issue?
My application manages presentation differently when dealing with fresh (getId() == null) and already persisted objects (getId() != null).
Problem is that when new object is to be persisted, in some situations some expected db exception is raised, handled as expected exception, but my app is confused because this new object, although hasn't been persisted successfuly, now has getd()!= null , thus my app thinks it's persisted !?
Some suggestion?
-Vjeran
|