Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo: indexed collections are not indexed in correct way with SessionController
Teneo: indexed collections are not indexed in correct way with SessionController [message #68871] Tue, 23 January 2007 03:39 Go to next message
Eclipse UserFriend
I have such mapping:

<class entity-name="Funnel" abstract="false" lazy="false"
discriminator-value="Funnel" table="`funnel`">
.....
<list name="event" fetch="subselect" lazy="true"
cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`funnel_id`" not-null="true" unique="false"/>
</key>
<list-index column="`funnel_event_idx`"/>
<one-to-many entity-name="FunnelEvent"/>
</list>
....
</class>

When I do not use SessionController all is OK.

But when I use SessionController for HibernateResource funnel_event_idx
is always null when I create and add new event to funnel.

Any syuggestions?

Thanks.

Ilya
Re: Teneo: indexed collections are not indexed in correct way with SessionController [message #68892 is a reply to message #68871] Tue, 23 January 2007 04:09 Go to previous messageGo to next message
Eclipse UserFriend
The session controller does not do much more then give access to a session so I am not sure how the
session controller can influence this.
So, I would need more information, can you debug some more? You can for example check which type the
delegate member in the PersistableEList instance has (of the event property).

gr. Martin

Ilya Klyuchnikov wrote:
> I have such mapping:
>
> <class entity-name="Funnel" abstract="false" lazy="false"
> discriminator-value="Funnel" table="`funnel`">
> .....
> <list name="event" fetch="subselect" lazy="true"
> cascade="merge,persist,save-update,lock,refresh">
> <key update="true">
> <column name="`funnel_id`" not-null="true" unique="false"/>
> </key>
> <list-index column="`funnel_event_idx`"/>
> <one-to-many entity-name="FunnelEvent"/>
> </list>
> ....
> </class>
>
> When I do not use SessionController all is OK.
>
> But when I use SessionController for HibernateResource funnel_event_idx
> is always null when I create and add new event to funnel.
>
> Any syuggestions?
>
> Thanks.
>
> Ilya


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo: indexed collections are not indexed in correct way with SessionController [message #68912 is a reply to message #68892] Tue, 23 January 2007 05:13 Go to previous message
Eclipse UserFriend
Hi Martin,

I resolved this problem. My sessionController had flushMode.MANUAL and
as far as I understand during save session was not flushed. I set
flushMode to COMMIT and now all is OK.

Ilya

Martin Taal wrote:
> The session controller does not do much more then give access to a
> session so I am not sure how the session controller can influence this.
> So, I would need more information, can you debug some more? You can for
> example check which type the delegate member in the PersistableEList
> instance has (of the event property).
>
> gr. Martin
>
> Ilya Klyuchnikov wrote:
>> I have such mapping:
>>
>> <class entity-name="Funnel" abstract="false" lazy="false"
>> discriminator-value="Funnel" table="`funnel`">
>> .....
>> <list name="event" fetch="subselect" lazy="true"
>> cascade="merge,persist,save-update,lock,refresh">
>> <key update="true">
>> <column name="`funnel_id`" not-null="true"
>> unique="false"/>
>> </key>
>> <list-index column="`funnel_event_idx`"/>
>> <one-to-many entity-name="FunnelEvent"/>
>> </list>
>> ....
>> </class>
>>
>> When I do not use SessionController all is OK.
>>
>> But when I use SessionController for HibernateResource
>> funnel_event_idx is always null when I create and add new event to
>> funnel.
>>
>> Any syuggestions?
>>
>> Thanks.
>>
>> Ilya
>
>
Re: Teneo: indexed collections are not indexed in correct way with SessionController [message #601581 is a reply to message #68871] Tue, 23 January 2007 04:09 Go to previous message
Eclipse UserFriend
The session controller does not do much more then give access to a session so I am not sure how the
session controller can influence this.
So, I would need more information, can you debug some more? You can for example check which type the
delegate member in the PersistableEList instance has (of the event property).

gr. Martin

Ilya Klyuchnikov wrote:
> I have such mapping:
>
> <class entity-name="Funnel" abstract="false" lazy="false"
> discriminator-value="Funnel" table="`funnel`">
> .....
> <list name="event" fetch="subselect" lazy="true"
> cascade="merge,persist,save-update,lock,refresh">
> <key update="true">
> <column name="`funnel_id`" not-null="true" unique="false"/>
> </key>
> <list-index column="`funnel_event_idx`"/>
> <one-to-many entity-name="FunnelEvent"/>
> </list>
> ....
> </class>
>
> When I do not use SessionController all is OK.
>
> But when I use SessionController for HibernateResource funnel_event_idx
> is always null when I create and add new event to funnel.
>
> Any syuggestions?
>
> Thanks.
>
> Ilya


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo: indexed collections are not indexed in correct way with SessionController [message #601586 is a reply to message #68892] Tue, 23 January 2007 05:13 Go to previous message
Eclipse UserFriend
Hi Martin,

I resolved this problem. My sessionController had flushMode.MANUAL and
as far as I understand during save session was not flushed. I set
flushMode to COMMIT and now all is OK.

Ilya

Martin Taal wrote:
> The session controller does not do much more then give access to a
> session so I am not sure how the session controller can influence this.
> So, I would need more information, can you debug some more? You can for
> example check which type the delegate member in the PersistableEList
> instance has (of the event property).
>
> gr. Martin
>
> Ilya Klyuchnikov wrote:
>> I have such mapping:
>>
>> <class entity-name="Funnel" abstract="false" lazy="false"
>> discriminator-value="Funnel" table="`funnel`">
>> .....
>> <list name="event" fetch="subselect" lazy="true"
>> cascade="merge,persist,save-update,lock,refresh">
>> <key update="true">
>> <column name="`funnel_id`" not-null="true"
>> unique="false"/>
>> </key>
>> <list-index column="`funnel_event_idx`"/>
>> <one-to-many entity-name="FunnelEvent"/>
>> </list>
>> ....
>> </class>
>>
>> When I do not use SessionController all is OK.
>>
>> But when I use SessionController for HibernateResource
>> funnel_event_idx is always null when I create and add new event to
>> funnel.
>>
>> Any syuggestions?
>>
>> Thanks.
>>
>> Ilya
>
>
Previous Topic:Teneo: indexed collections are not indexed in correct way with SessionController
Next Topic:Teneo: <version type="dbtimestamp">
Goto Forum:
  


Current Time: Thu Mar 13 13:51:36 EDT 2025

Powered by FUDForum. Page generated in 0.02796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top