Hi,

I am mapping a MAP in one of my domain objects the following way:

    <map name="AllTitles" access="nosetter.camelcase-underscore"
table="translation">
      <key column="record_id"></key>
      <index column="culture_id" type="Int32"></index>
      <element column="val" type="String"></element>
    </map>

so AllTitles is an IDictionary in my domain object.

How can I create a criteria query which restricts the culture_id or
the val of the map.

E.g something like that.

session.CreateCriteria(typeof(DomainObject)).Add(Expression.Like
("AllTitles.element", "%your%")).List<T>()

Thanks for any input!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to