You can get around this
- By actually reloading the domain object in each function, although this may seem slow, hibernate will cache these calls (if you allow it)
- You can turn the associations in the Domain object to fetch eagerly (though this may have a performance hit, as more of the object is loaded)
- You can use a constraints() load to specifically eager fetch you required relationships (see Querying with eager fetching)
No comments:
Post a Comment