Hi,
I am peristing data into single table in oracle.. I am not using sequence at all. I am using hibernate increment in hbm file.
public class TestLwot { public static void main(String[] args) { MakeLwotObj makeLwotObj= new MakeLwotObj (); LWOTDao lwotDao = new LWOTDaoImpl(); lwotDao.persistLWOTPatient(makeLwotObj.getLwot()); // IT CALLS SAVE OR UPDATE OF HIBERNATE // makeLwotObj.getLwot() returns LwotObject.. which does not contain any id.. id field is null.. try { Thread.sleep(30 * 1000); lwotDao.persistLWOTPatient(makeLwotObj.getLwot()); // IT CALLS SAVE OR UPDATE OF HIBERNATE } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
ORA-00001: unique constraint (DATEAM.SYS_C0039965) violated