Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?

Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?

Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?

A.
cascade all

B.
cascade detach

C.
cascade remove

D.
cascade-persist

Explanation:
http://netbeans.org/bugzilla/show_bug.cgi?id=172098
(second yellow box on the page)



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Mohamed Fayek

Mohamed Fayek

ANSWER : D

   
    
      
         
    
 

As per section 12.2.1.5 of JPA 2.0 Specification: 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.