bookmark

cascade - Hibernate : CascadeType.PERSIST does not work but CascadeType.ALL to save object - Stack Overflow


Description

For the save() operation to be cascaded, you need to enable CascadeType.SAVE_UPDATE, using the proprietary Hibernate Cascade annotation, since save() is not a standard JPA operation. Or you need to use the persist() method, and not the save() method.

Preview

Tags

Users

  • @jil

Comments and Reviews