-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: MatchMode not recognized in Query By Example
PostPosted: Fri Jan 23, 2009 5:03 pm 
Newbie

Joined: Thu Jan 22, 2009 11:56 am
Posts: 1
I have code such as that listed below based off the NHibernate trunk which when executed does not behave as I expected. The generated sql statement where clause does not include a wildcard after the property name. I see "where name = 'a'" though expected "where name = 'a%'". Will someone please offer guidance regarding this issue? Thanks in advance.

Product product = new Product();
product.name = 'a';
DetachedCriteria criteria = DetachedCriteria.For(typeof(Product));
criteria.Add(Example.Create(product).EnableLike(MatchMode.Start).ExcludeProperty("modifiedOn"));


Top
 Profile  
 
 Post subject: Re: MatchMode not recognized in Query By Example
PostPosted: Thu Jul 23, 2009 11:32 am 
Newbie

Joined: Mon Jan 14, 2008 5:36 am
Posts: 6
Now I have the same Problem. I looked at the sourcecode but I cant't figure out whats the problem. Is this a Bug? I'm using NHibernate 2.1


Top
 Profile  
 
 Post subject: Re: MatchMode not recognized in Query By Example
PostPosted: Tue Jul 28, 2009 4:26 am 
Newbie

Joined: Mon Jan 14, 2008 5:36 am
Posts: 6
I seems it was realy a bug. I've send a patch to the JIRA site.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.