Yeah! I agree with Sasha

On Sun, Jul 4, 2010 at 4:16 AM, sasha revzin <[email protected]> wrote:

> nobody, but i think that it will be nice to have switchable option: pure
> sql or HQL
>
>
>
> On Sat, Jul 3, 2010 at 00:50, Fabio Maulo <[email protected]> wrote:
>
>> added what ?
>>
>> who said that you should have only one set of mappings ?
>> who said that formula should be something different than pure SQL92 ?
>>
>>
>> On Fri, Jul 2, 2010 at 5:59 PM, Felipe Oriani <[email protected]> wrote:
>>
>>> Yeah... I agree! I'd like that in the next version that could be added
>>> right =D
>>>
>>>
>>> On Fri, Jul 2, 2010 at 1:21 PM, Fabio Maulo <[email protected]>wrote:
>>>
>>>> the tag is:
>>>> lazy="extra"
>>>>
>>>>
>>>> On Fri, Jul 2, 2010 at 7:53 AM, Jason Meckley 
>>>> <[email protected]>wrote:
>>>>
>>>>> if you want to implement this particular behavior you can set the
>>>>> fetching strategy to extra.
>>>>> <bag/set/list name="Children" ... fetch="extra">
>>>>>
>>>>> if you are referring to formula's in general, then yes you are limited
>>>>> to dialect specific sql. To avoid this, you could calculate the value
>>>>> in the domain and stored the value in the database, moving computation
>>>>> from the database to the domain, this way your queries are still
>>>>> database agnostic.
>>>>>
>>>>> On Jul 2, 2:46 am, Sasha <[email protected]> wrote:
>>>>> > i read documentation of NH about formula option and discovered that
>>>>> it
>>>>> > uses plain sql depended on dialect (db syntax)
>>>>> > it mean that if i have property in my class like CountChildren that
>>>>> > uses something like this (select count(id) from tbl_childred where
>>>>> > parent_id=tbl_parent.id) in formula, i will need change it if
>>>>> another
>>>>> > dialect will use diff syntax for COUNT
>>>>> >
>>>>> > so my question is: why formula cannot uses HQL for this?
>>>>> > think... it will be cool, cuz HQL not depended on dialect
>>>>> >
>>>>> > what do u think?
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "nhusers" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<nhusers%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Fabio Maulo
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nhusers" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<nhusers%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> ______________________________________
>>> Felipe B. Oriani
>>> [email protected] | www.felipeoriani.com.br
>>>
>>> "...Trabalhe quanto puder, tornando-se útil quanto possível..." , por
>>> André Luiz
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "nhusers" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>
>>
>>
>> --
>> Fabio Maulo
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>



-- 
______________________________________
Felipe B. Oriani
[email protected] | www.felipeoriani.com.br

"...Trabalhe quanto puder, tornando-se útil quanto possível..." , por André
Luiz

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to