13.07.2015 Views

Hibernate Query Language Hibernate Query Language and Native

Hibernate Query Language Hibernate Query Language and Native

Hibernate Query Language Hibernate Query Language and Native

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Implicit Association Join• Leverages the associations identifiedin the object’s mapping file to figureout what SQL needs to be generated• Uses dot notation to access theassociated object in the query• Only works for a single associationreference– Does not work against collections of objectsImplicit Association Join• Search for EBills by the name of theEBiller, through the EBill object<strong>Query</strong> getVisaCardEbills =session.create<strong>Query</strong>("from EBill ebill whereebill.ebiller.name like '%VISA%' "List ebills = getVisaCardEbills.list();li t()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!