Get does not throw, it returns null.
(Arguably, it's better to use Get and have the client code throw if it
returns null than use a query api...)

    Diego


On Sat, Aug 7, 2010 at 08:44, Tuna Toksoz <[email protected]> wrote:

> Get()?
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksoz
> http://tunatoksoz.com
> http://twitter.com/tehlike
>
>
>
>
>
> On Sat, Aug 7, 2010 at 10:18 AM, alexey_baranov <[email protected]>wrote:
>
>> I'm looking for a session method wich would load entity imidiatly and
>> throw exception if no row was found in database. I need it because of
>> truble load() method with polimorphic lazy loading.
>>
>
>  --
> 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].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to