The message suggests you are trying to insert a null value in a field that cannot be null. The field is name - check the value you are adding.
If you are trying to insert 3 records and 2nd one fail then hibernate does not insert 1 and 3 because they are in same transaction.
How could I get it done ? I still want to insert 1st and 3rd record even if 2nd one does fail.
This is transactions behaving as they are designed to. If the three inerts statements are not dependent on each other don't put them in the same transaction.