aspose file tools
The moose likes JPA Certification (OCEJPA) and the fly likes Why only cascade-persist can be set globally? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "Why only cascade-persist can be set globally?" Watch "Why only cascade-persist can be set globally?" New topic
Author

Why only cascade-persist can be set globally?

Leon Omk
Ranch Hand

Joined: Aug 17, 2010
Posts: 75

12.2.1.5 cascade-persist
The cascade-persist subelement applies to all relationships in the persistence unit.
Specifying this subelement adds the cascade persist option to all relationships in addition to any settings
specified in annotations or XML.
The cascade-persist subelement cannot be overridden in this release.
The ability to override the cascade-persist of the persistence-unit-defaults
element will be added in a future release of this specification.


Why can't other types, such as cascade-remove, cascade-refresh,etc. be set globally? Curious and can't figure out the answer.


OK, so that other guy knows Java better than I do, but I bet he can't speak Wuhanese(a Chinese Dialect) like me.
 
Consider Paul's rocket mass heater.
 
subject: Why only cascade-persist can be set globally?