Teneo: indexed collections are not indexed in correct way with SessionController [message #68871] |
Tue, 23 January 2007 03:39  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02796 seconds