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?
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.
See "3.4.1.7. Query hints".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With