|
|
Re: Teneo: It is impossible to specify queries order for Hibernate resource [message #68395 is a reply to message #68387] |
Fri, 19 January 2007 11:10  |
Eclipse User |
|
|
|
Ilya,
What happens is the following: the parameters in the queryset (of the uri) are put in a hashmap
(keyed on parameter name). The getqueries method then retrieves the query parameters from the
hashmap. I can change this by using a treemap instead of a hashmap. This is a small change and will
make the retrieval order of the queries more deterministic (in order of their parameter name).
Please enter a bugzilla for this as well.
Btw you can override getqueries to implement this yourselve for now.
gr. Martin
Ed Merks wrote:
> Ilya,
>
> Not that I know any of the details, but perhaps if a LinkedHashSet were
> used, the order would be more deterministic...
>
>
> Ilya Klyuchnikov wrote:
>> I load very big model from db.
>>
>> I have optimized the queries (and their order) for loading model. But
>> HibernateResource is agnostic to query order cause when it parses URI
>> it puts queries into HashSet and then cannot restore order of queries.
>>
>> Can it be solved?
>>
>> 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: It is impossible to specify queries order for Hibernate resource [message #601411 is a reply to message #68367] |
Fri, 19 January 2007 09:29  |
Eclipse User |
|
|
|
Ilya,
Not that I know any of the details, but perhaps if a LinkedHashSet were
used, the order would be more deterministic...
Ilya Klyuchnikov wrote:
> I load very big model from db.
>
> I have optimized the queries (and their order) for loading model. But
> HibernateResource is agnostic to query order cause when it parses URI
> it puts queries into HashSet and then cannot restore order of queries.
>
> Can it be solved?
>
> Thanks
>
> Ilya
|
|
|
Re: Teneo: It is impossible to specify queries order for Hibernate resource [message #601413 is a reply to message #68387] |
Fri, 19 January 2007 11:10  |
Eclipse User |
|
|
|
Ilya,
What happens is the following: the parameters in the queryset (of the uri) are put in a hashmap
(keyed on parameter name). The getqueries method then retrieves the query parameters from the
hashmap. I can change this by using a treemap instead of a hashmap. This is a small change and will
make the retrieval order of the queries more deterministic (in order of their parameter name).
Please enter a bugzilla for this as well.
Btw you can override getqueries to implement this yourselve for now.
gr. Martin
Ed Merks wrote:
> Ilya,
>
> Not that I know any of the details, but perhaps if a LinkedHashSet were
> used, the order would be more deterministic...
>
>
> Ilya Klyuchnikov wrote:
>> I load very big model from db.
>>
>> I have optimized the queries (and their order) for loading model. But
>> HibernateResource is agnostic to query order cause when it parses URI
>> it puts queries into HashSet and then cannot restore order of queries.
>>
>> Can it be solved?
>>
>> 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.03375 seconds