I am trying to delete multiple row using below method of but this is giving some exception. If any other alternative available for doing same JOB then please suggest.
deleteByCompositIdIn(List<CompositId> compositIdList)
<----- CompositId class given below ---->
@Embeddable
public class CompositId {
@Column(name="empFirstName")
private String empFirstName;
@Column(name="empId")
private int empId;
public String getEmpFirstName() {
return empFirstName;
}
public void setEmpFirstName(String empFirstName) {
this.empFirstName = empFirstName;
}
public int getEmpId() {
return empId;
}
public void setEmpId(int empId) {
this.empId = empId;
}
}
but getting below exception
failed: javax.persistence.TransactionRequiredException: No transactional EntityManager available