Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Hibernate \'fetch\' Clause Ineffective


Level 1

I have a few assocations in my database defined to be lazily-loaded. It is my understanding from this page ( that if I put the word "fetch" before an object it will eagerly fetch that object.

This clause does not appear to do anything when working with a object connected to LCDS. I still get an ItemPendingError when I try to access the associated object. If I change the assocaition to be eagerly fetched in the hibernate mapping file I do not get the error. Is this clause not supported by the LCDS Hibernate Assembler?

I can post some code at some point if someone would like to see it. It would take a little work to clean it up and I'm hoping someone can shed a little light on this without it.

0 Replies