I am working on a basic example to test cascade delete operation but I am getting exception.
cascade delete
I have below entities:
Employee.java
The REMOVE cascade type is for the standard JPA remove() operation. For the native Hibernate delete() operation, you need to use a Hibernate-proprietary annotation:
remove()
delete()
@Cascade(CascadeType.DELETE)