Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:39 Go to next message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
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 09:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 10:13 Go to previous message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
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 09:09 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 10:13 Go to previous message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
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: Wed Apr 24 22:10:05 GMT 2024

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

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

Back to the top