Which option can be used to predefine Java Persistence queries for easy use?

Which option can be used to predefine Java Persistence queries for easy use?




a. @NamedQuery annotation
b. @NamedNativeQuery annotation
c. using the named-native-query element in the XML descriptor




Answer: A


Learn More :