[jpa-spec users] [jsr338-experts] Re: Proposal for EntityGraphs, fetch plans, etc...

From: Gordon Yorke <>
Date: Thu, 06 Dec 2012 09:02:31 -0400

Hello Rainer and others,
    A reply below,
Thank you,

On 06/12/2012 7:40 AM, Rainer Kwesi Schweigkoffer wrote:
> Hi Gordon, all,
> Gordon Yorke, am 5 Dec 2012 hast Du um 10:14 zum Thema "[jsr338-
> experts] Re: Proposal for EntityGraphs, f" geschrieben :
>> context. There's no need for the developer to search out the elements
>> of the entity graph throughout the domain model and correlate
>> relationships to determine how an entity graph that is being used for a
>> particular operation will impact the result.
> Actually, to my understanding, with javax.persistence.loadgraph this
> seems to be the case.
the load graph is a template to force load desired attributes so once a
load graph has been used the developer has a reasonable expectation that
the specified attributes were loaded but does not care about the state
of the other attributes. Also, the load state of all other attributes
is unknown and based on application access and provider lazy support (a
provider is always allowed to load more than specified by the user) so
if load state must be know isLoaded() must be used and searching the
domain model is of little help.
>>> Actually, with state I was referring to detached vs. managed vs. new.
>> The copied entity instances would be detached and possibly new if new
>> instances were copied.
> Might be worth a sentence in the spec.
> TX and best regards
> Rainer
> ---
> Rainer Schweigkoffer SAP AG Walldorf
> Regulatory Compliance TIP Core JI
> Core Java Infrastructure Dietmar-Hopp-Allee 16
> Technology & Innovation Platform D-69190 Walldorf
> Building 3, F.3.14 phone: +49 6227 7 45305
> fax: +49 6227 7 821177
> Sitz der Gesellschaft/Registered Office: Walldorf, Germany
> Vorstand/SAP Executive Board: Werner Brandt, Lars
> Dalgaard, Luisa Deplazes Delgado, Bill McDermott (Co-CEO),
> Gerhard Oswald, Vishal Sikka, Jim Hagemann Snabe (Co-CEO)
> Vorsitzender des Aufsichtsrats/Chairperson of the SAP
> Supervisory
> Board: Hasso Plattner
> Registergericht/Commercial Register Mannheim No HRB 350269
> Diese E-Mail kann Betriebs- oder Geschaeftsgeheimnisse
> oder sonstige vertrauliche Informationen enthalten.
> Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist
> Ihnen eine Verwertung des Inhalts, eine Vervielfaeltigung
> oder Weitergabe der E-Mail ausdruecklich untersagt. Bitte
> benachrichtigen Sie uns und vernichten Sie die empfangene
> E-Mail. Vielen Dank.
> This e-mail may contain trade secrets or privileged,
> undisclosed, or otherwise confidential information. If you
> have received this e-mail in error, you are hereby
> notified that any review, copying, or distribution of it
> is strictly prohibited. Please inform us immediately and
> destroy the original transmittal. Thank you for your
> cooperation.