Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate Query Hints for JPA

Tags:

I have been trying to find a definitive resource for all of the hints that can be set through the Query.setHint(String,Object) method call in JPA, but I am coming up empty. Anyone know a good reference?

like image 590
mainstringargs Avatar asked Jun 18 '09 22:06

mainstringargs


People also ask

What are the mandatory option in JPA?

JPA - Making @OneToOne relationship mandatory by setting optional=false. @OneToOne annotation specifies an association to another entity that has one-to-one multiplicity. Following example demonstrates that setting @OneToOne(optional=false) makes the association mandatory.


1 Answers

See "3.4.1.7. Query hints".

like image 150
FoxyBOA Avatar answered Oct 04 '22 03:10

FoxyBOA