I am trying to save name, address, email information using Hibernate in 1 transactrion...sometimes there is an exception thrown by Hibernate, this causes JBoss to rollback the full transaction, even though I have a catch for the hibernate exception.
I would like for just the bad data for example email to not be saved to the database and the other fields to be saved. If there is a Hibernate exception saving email... then I just want the email bit to rollback not the entire, name, address, email to rollback -which is what JBoss does. Does anybody have any suggestions as to how I can implement this? Please provide code sample if possible