• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why only cascade-persist can be set globally?

Leon Omk
Ranch Hand
Posts: 75
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator 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.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!