fetching non-containment relations eagerly [message #604208] |
Tue, 03 April 2007 14:53 |
Christian Donhofer Messages: 94 Registered: July 2009 |
Member |
|
|
hi martin, switching back to the newsgroup as discussed. =)
i'm now trying the following in my .ecore:
<eAnnotations source="teneo.jpa">
<details key="@OneToMany(indexed" value="false)"/>
</eAnnotations>
which works, but this doesn't:
<eAnnotations source="teneo.jpa">
<details key="@OneToMany(fetch" value="EAGER)"/>
</eAnnotations>
this produces the following in my subclass of EPackageImpl:
// @OneToMany
create@OneToManyAnnotations();
which obviously causes a Method undefined error.
why' that?
im using teneo 0.8.0.
cheers, chris
Martin Taal wrote:
> Hi Christian,
> You are using a deprecated notation. Instead of this:
> <eAnnotations source="http://annotation.elver.org/Indexed">
> <details key="value" value="false"/>
> </eAnnotations>
>
> you should do this:
>
> <xsd:annotation>
> <xsd:appinfo
> source="teneo.jpa">@OneToMany(indexed=false)</xsd:appinfo >
> </xsd:annotation>
>
>
> As you can see the source is teneo.jpa , key to appinfo and the contents
> of the annotation follow the java annotation style.
>
> To set eager loading you would have something like this:
>
> <xsd:annotation>
> <xsd:appinfo
> source="teneo.jpa">@OneToMany(fetch=EAGER)</xsd:appinfo>
> </xsd:annotation>
>
>
> Yes, eclipse.tools.emf is the correct newsgroup.
>
> Btw, would you mind continuing our discussion on the newsgroup? It can
> also help others.
>
> gr. Martin
>
> Christian Donhofer(@fhcampus) wrote:
>
>> Martin Taal wrote:
|
|
|
Powered by
FUDForum. Page generated in 0.03259 seconds