Employee (empCode, empAddress, email)
LoginUser (userName, isLocked, empCode(fk @oneToOne))
LoginUser table contains empCode as foreign key.
I tried without cascade on both side too, everything. But, it’s going into infinite loop to StackOverFlowError.
Same for save employee too
I am getting Error. This scenario where CascadeType.ALL is even there
Caused by: org.hibernate.AssertionFailure: non-transient entity has a null id: com.titan.poss.user.dao.UserLogin
And in hashcode I am excluding the other Object too