|
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 |
Martin Taal 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 #601581 is a reply to message #68871] |
Tue, 23 January 2007 09:09 |
Martin Taal 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds