Joined: Tue May 02, 2006 6:54 pm Posts: 10 Location: Salt Lake City, Utah
|
I'd like to have a custom generic text search criteria extended from AbstractCriterion that would allow to search all string-based properties of an instance and its ASSOCIATIONS. Problem is that I couldn't find a way to access aliases for associactions so that LikeExpressions could be converted to sql string properly. Is it possible?
Example criteria query ignores associations, probably for this very same reason.
I may have used approach from documentation like,
IList results = session.CreateCriteria(typeof(Cat))
.Add( Example.Create(cat) )
.CreateCriteria("Mate")
.Add( Example.Create( cat.Mate ) )
.List()
but I want the type to be generic and my custom text search criteria to encapsulate associations.
Andre
|
|