Yes, I want that behavior.
I need this for localized data, I want the property values comes from
another table based on the cultureFilter and record ID.

eg:

public class Menu
{
     public int Id {get; set;}
     public string Title {get; set;}
     public string Description {get; set;}
}

<class name="Menu" table="MENU">
.....

<join table="MENU_I18N">
<key column="MN_ID_MN" />
<property name="Title" />
<property name="Description" />
*<filter name="Culture" condition="Culture = :CultureName" />*
</join>

.....
</class>

BTW, this strategy not allow to insert/update values correctly, I've  tried
another strategy with <map /> and in the getter and setter I'd lookup the
dictionary, but i don't know how i query based on localized values (via
criteria/hql)

Thanks.

On Fri, Aug 28, 2009 at 4:28 AM, Oskar Berggren <[email protected]>wrote:

>
> But <join> is used when one object comes from several tables.
> Filtering that would mean to hide "half" your object. Is this really
> what you want?
>
> /Oskar
>
>
> 2009/8/27 Tiago Soczek <[email protected]>:
> > Hi guys,
> > I want use the <join /> element with a additional filter (can be the
> <filter
> > />), anyone has a idea how i can do this?
> > Thanks.
> > Tiago
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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