[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Uregntly need help for thesis: Batch reading of collection with lazy OneToOne relation
|
- From: Frank Schwarz <fs5@xxxxxxx>
- Date: Tue, 23 Jun 2009 01:22:23 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
Hi Mario,
the query key has to be defined on Partner pointing to Employee instead of
Role. Please have a look at
http://code.google.com/p/oopex/source/browse/trunk/modules/eclipselink1-jpa/src/queries-downcasts/java/oopex/eclipselink1/jpa/queries/DowncastsMain.java#139.
I never tried this for defining Join-Reads/Batch-Reads, though.
@Tom: Using downcasts in queries is, from my point of view, something quite
natural if you design your model in a truly object oriented way. Reiterating
that this feature nobody is needing, does not make disappear. The other
feature, Mario is looking for, might be called "fetch-plans/plans" - as in
the old JDO days ;-). See
http://wiki.eclipse.org/EclipseLink/Development/JPA/NestedFetchGroups, last
item in the open issues list. Also this feature(-request) I see frequently
in projects when there is a CRUD-style rich client.
-- Frank
Meet me at JFS2009 http://www.java-forum-stuttgart.de/
Mario Sandro Schwarz wrote:
>
> I did already try it with a customizer based on the workaround from Doug
> Clarke "Accessing un-mapped attributes using QueryKey "
> (http://wiki.eclipse.org/EclipseLink/Development/JPA/QueryDownCast). The
> role entity class was annotated with this Customizer:
>
>
--
View this message in context: http://www.nabble.com/Uregntly-need-help-for-thesis%3A-Batch-reading-of-collection-with-lazy-OneToOne-relation-tp24144361p24161872.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.