Hello,<br><br>Thanks for your help.<br><br>I achieved it...<br><br>Regards,<br>$B%H%^%9(B<br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 5:19 PM, kubo <span dir="ltr"><<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello, this is jflute.<br>
<div class="im"><br>
> select * from employeemaster where (employeenamekanji ilike 'asd%' or<br>
> employeefirstname ilike 'og%') and deleteflg=false<br>
><br>
> How can i achieve in conditionBean.<br>
><br>
> can i use Union for these.Please give some tips..<br>
<br>
</div>Please use Union and you can achieve.<br>
Like this:<br>
<br>
EmployeeMasterCB cb = new EmployeeMasterCB();<br>
cb.query().setEmployeeNameKanji(...);<br>
cb.query().setDeleteFlg_Equal_True();<br>
cb.union(new UnionQuery<EmployeeMasterCB>() {<br>
public void query(EmployeeMasterCB unionCB) {<br>
unionCB.query().setEmployeeFirstName(...);<br>
unionCB.query().setDeleteFlg_Equal_True();<br>
}<br>
});<br>
<br>
The method "test_union_Tx()" may be a help.<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-basic-example/src/test/java/com/example/dbflute/basic/dbflute/howto/jp/BehaviorMiddleTest.java" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-basic-example/src/test/java/com/example/dbflute/basic/dbflute/howto/jp/BehaviorMiddleTest.java</a><br>
<br>
2009/6/11 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
<div><div></div><div class="h5">> hai,<br>
><br>
> I have one more query.<br>
><br>
> How can i use OR condition in CBean<br>
><br>
> select * from employeemaster where (employeenamekanji ilike 'asd%' or<br>
> employeefirstname ilike 'og%') and deleteflg=false<br>
><br>
> How can i achieve in conditionBean.<br>
><br>
> can i use Union for these.Please give some tips..<br>
><br>
> Thanks,<br>
> $B%H%^%9(B<br>
><br>
><br>
> On 6/10/09, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>> Hello,<br>
>><br>
>>> After changing the version of my dbflute-runtime i got ilike in SQL log.<br>
>><br>
>> Oh, OK. I'm happy.<br>
>> Thanks<br>
>><br>
>><br>
>> #<br>
>> # I'm sorry that DBFlute documents are written in Japanese.<br>
>> # Though I want to write in English at the future,<br>
>> # It may take a lot of time.<br>
>> #<br>
>><br>
>> On Wed, Jun 10, 2009 at 7:20 PM, kubo<<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>>> Hello,<br>
>>><br>
>>> Thank you for confirming.<br>
>>><br>
>>>> i got the following Exception.<br>
>>> That means that Framework calls the method.<br>
>>> It is right result.<br>
>>><br>
>>>> I have the following file in my lib folder<br>
>>>><br>
>>>> WEB-INF/lib<br>
>>>> |-dbflute-runtime.jar<br>
>>>> |-other...jar<br>
>>>><br>
>>>> whether i have to replace dbflute-runtime.jar with<br>
>>>> dbflute-runtime.jar-0.9.5?<br>
>>><br>
>>> Is that dbflute-runtime.jar 0.9.5?<br>
>>> (How did you upgrade DBFlute to 0.9.5?)<br>
>>><br>
>>> This dbflute-runtime.jar should be 0.9.5.<br>
>>> Download dbflute-runtime-0.9.5.jar from this:<br>
>>> <a href="http://maven.seasar.org/maven2/org/seasar/dbflute/dbflute-runtime/0.9.5/dbflute-runtime-0.9.5.jar" target="_blank">http://maven.seasar.org/maven2/org/seasar/dbflute/dbflute-runtime/0.9.5/dbflute-runtime-0.9.5.jar</a><br>
>>> And then replace dbflute-runtime.jar with dbflute-runtime-0.9.5.jar.<br>
>>> And try again(selectPage()).<br>
>>><br>
>>><br>
>>><br>
>>> 2009/6/10 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>> Hai<br>
>>>> i got the following Exception.<br>
>>>><br>
>>>> DEBUG 2009-06-10 18:20:54,171 [http-8080-1] END<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage#prerender()<br>
>>>> Throwable:java.lang.IllegalStateException<br>
>>>> DEBUG 2009-06-10 18:20:54,203 [http-8080-1]<br>
>>>> java.lang.IllegalStateException<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$1.getExtensionOperand(EmployeemasterListPage.java:127)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.ckey.ConditionKeyLikeSearch.doAddWhereClause(ConditionKeyLikeSearch.java:83)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.ckey.ConditionKey.addWhereClause(ConditionKey.java:127)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.sqlclause.AbstractSqlClause.registerWhereClause(AbstractSqlClause.java:770)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.AbstractConditionQuery.setupConditionValueAndRegisterWhereClause(AbstractConditionQuery.java:1347)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.AbstractConditionQuery.registerLikeSearchQuery(AbstractConditionQuery.java:489)<br>
>>>> at<br>
>>>> org.seasar.dbflute.cbean.AbstractConditionQuery.regLSQ(AbstractConditionQuery.java:467)<br>
>>>> at<br>
>>>> projectmgnt.dbflute.cbean.cq.bs.AbstractBsEmployeemasterCQ.setEmployeecode_LikeSearch(AbstractBsEmployeemasterCQ.java:126)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage.prerender(EmployeemasterListPage.java:124)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.$$prerender$$invokeSuperMethod$$(EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.java)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)<br>
>>>> at<br>
>>>> org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)<br>
>>>> at<br>
>>>> org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:77)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> projectmgnt.interceptor.LoginUserInterceptor.invoke(LoginUserInterceptor.java:48)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> projectmgnt.interceptor.LoginAuthInterceptor.invoke(LoginAuthInterceptor.java:46)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
>>>> at<br>
>>>> projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.prerender(EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.java)<br>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
>>>> at java.lang.reflect.Method.invoke(Unknown Source)<br>
>>>> at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:93)<br>
>>>> at<br>
>>>> org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:213)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:163)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invokePrerender(HtmlComponentInvokerImpl.java:138)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.render.TViewRootRenderer.invoke(TViewRootRenderer.java:101)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.render.TViewRootRenderer.invokeAll(TViewRootRenderer.java:81)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.render.TViewRootRenderer.encodeBegin(TViewRootRenderer.java:61)<br>
>>>> at<br>
>>>> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:330)<br>
>>>> at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:100)<br>
>>>> at<br>
>>>> javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:247)<br>
>>>> at<br>
>>>> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:184)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.taglib.TViewTag.doStartTag(TViewTag.java:98)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.processor.ElementProcessorImpl.processTag(ElementProcessorImpl.java:145)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:138)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:119)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:157)<br>
>>>> at<br>
>>>> org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:143)<br>
>>>> at<br>
>>>> org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase.executePhase(RenderResponsePhase.java:39)<br>
>>>> at<br>
>>>> org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)<br>
>>>> at<br>
>>>> org.seasar.teeda.core.lifecycle.LifecycleImpl.render(LifecycleImpl.java:131)<br>
>>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:101)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
>>>> at<br>
>>>> projectmgnt.util.RequestDumpFilter.doFilter(RequestDumpFilter.java:74)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
>>>> at<br>
>>>> org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
>>>> at<br>
>>>> org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
>>>> at<br>
>>>> org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
>>>> at<br>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
>>>> at<br>
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>
>>>> at<br>
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<br>
>>>> at<br>
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br>
>>>> at<br>
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
>>>> at<br>
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>
>>>> at<br>
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)<br>
>>>> at<br>
>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br>
>>>> at<br>
>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)<br>
>>>> at<br>
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br>
>>>> at java.lang.Thread.run(Unknown Source)<br>
>>>><br>
>>>> I have the following file in my lib folder<br>
>>>><br>
>>>> WEB-INF/lib<br>
>>>> |-dbflute-runtime.jar<br>
>>>> |-other...jar<br>
>>>><br>
>>>><br>
>>>><br>
>>>> whether i have to replace dbflute-runtime.jar with<br>
>>>> dbflute-runtime.jar-0.9.5?<br>
>>>><br>
>>>> Regards,<br>
>>>> $B%H%^%9(B<br>
>>>><br>
>>>><br>
>>>> On Wed, Jun 10, 2009 at 5:47 PM, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> Hello,<br>
>>>>><br>
>>>>> Thanks you for watching your log.<br>
>>>>> The problem is that the code doesn't use 'ilike'.<br>
>>>>> Now I don't know why the code doesn't...<br>
>>>>> (Because the example works well)<br>
>>>>><br>
>>>>> There are several things I want to confirm...<br>
>>>>><br>
>>>>><br>
>>>>> 1. Does this code throw the exception?<br>
>>>>><br>
>>>>> empCB.query().setEmployeecode_LikeSearch("emp", new LikeSearchOption()<br>
>>>>> {<br>
>>>>> @Override<br>
>>>>> public ExtensionOperand getExtensionOperand() {<br>
>>>>> throw new IllegalStateException();<br>
>>>>> //return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>>>> }<br>
>>>>> }.likePrefix());<br>
>>>>><br>
>>>>> *I want to confirm that the method is called by DBFlute Framework.<br>
>>>>><br>
>>>>><br>
>>>>> 2. Is dbflute-runtime-0.9.5.jar valid on your Runtime Environment<br>
>>>>> (Did you remove an old jar file 'dbflute-runtime-0.9.4.1.jar' from<br>
>>>>> Runtime Environment?)<br>
>>>>><br>
>>>>> For example:<br>
>>>>><br>
>>>>> {o}<br>
>>>>> WEB-INF/lib<br>
>>>>> |-dbflute-runtime-0.9.5.jar<br>
>>>>> |-other...jar<br>
>>>>><br>
>>>>> {x}<br>
>>>>> WEB-INF/lib<br>
>>>>> |-dbflute-runtime-0.9.4.1.jar<br>
>>>>> |-dbflute-runtime-0.9.5.jar<br>
>>>>> |-other...jar<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> 2009/6/10 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>>> > Hai,<br>
>>>>> ><br>
>>>>> > it uses like in SQL not ilike.<br>
>>>>> ><br>
>>>>> ><br>
>>>>> > EmployeemasterBhv.selectPage():paging()<br>
>>>>> > DEBUG 2009-06-10 17:03:23,437<br>
>>>>> > [http-8080-1]<br>
>>>>> > ======================================/<br>
>>>>> > DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
>>>>> > EmployeemasterListPage.prerender():154 --><br>
>>>>> > EmployeemasterBhv.selectPage()<br>
>>>>> > --> ...<br>
>>>>> > DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
>>>>> > $BO@M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=[FormatId=4360, GlobalId=1244620931796/5,<br>
>>>>> > BranchId=]<br>
>>>>> > DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
>>>>> > select dflocal.deleteflg as c1, dflocal.costrank as c2,<br>
>>>>> > dflocal.address1<br>
>>>>> > as<br>
>>>>> > c3, dflocal.address2 as c4, dflocal.postalcode as c5,<br>
>>>>> > dflocal.lastupdated as<br>
>>>>> > c6, dflocal.employeecode as c7, dflocal.employeenamekanji as c8,<br>
>>>>> > dflocal.employeenamekana as c9, dflocal.employeefirstname as c10,<br>
>>>>> > dflocal.employeelastname as c11, dflocal.dob as c12, dflocal.age as<br>
>>>>> > c13,<br>
>>>>> > dflocal.joiningdate as c14, dflocal.designation as c15,<br>
>>>>> > dflocal.joblevel<br>
>>>>> > as<br>
>>>>> > c16, dflocal.yearofexperience as c17, dflocal.housephoneno as c18,<br>
>>>>> > dflocal.mobilephoneno as c19, dflocal.email as c20,<br>
>>>>> > dflocal.terminationdate<br>
>>>>> > as c21, dflocal.registerdate as c22<br>
>>>>> > from employeemaster dflocal<br>
>>>>> > where dflocal.employeecode like 'emp%' escape '|'<br>
>>>>> > offset 0 limit 10<br>
>>>>> ><br>
>>>>> ><br>
>>>>> > Regards,<br>
>>>>> > $B%H%^%9(B<br>
>>>>> ><br>
>>>>> ><br>
>>>>> > On Tue, Jun 9, 2009 at 8:03 PM, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>>>>> >><br>
>>>>> >> Hello,<br>
>>>>> >><br>
>>>>> >> Please confirm your SQL on console log.<br>
>>>>> >> Does the SQL use 'ilike'$B!)(B<br>
>>>>> >> (where EMPLOYEE_CODE ilike 'emp%')<br>
>>>>> >><br>
>>>>> >> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>>> >> > hai,<br>
>>>>> >> ><br>
>>>>> >> > I upgraded my dbflute to 0.9.5.<br>
>>>>> >> ><br>
>>>>> >> > EmployeemasterCB empCB = employeemasterBhv.newMyConditionBean();<br>
>>>>> >> > empCB.query().setEmployeecode_LikeSearch("emp", new<br>
>>>>> >> > LikeSearchOption() {<br>
>>>>> >> > @Override<br>
>>>>> >> > public ExtensionOperand getExtensionOperand() {<br>
>>>>> >> > return<br>
>>>>> >> > WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>>>> >> > }<br>
>>>>> >> > }.likePrefix());<br>
>>>>> >> ><br>
>>>>> >> > if i give "emp" as search condition it retrieves only The values<br>
>>>>> >> > starts<br>
>>>>> >> > with<br>
>>>>> >> > emp.<br>
>>>>> >> ><br>
>>>>> >> > InMy table i have the values<br>
>>>>> >> ><br>
>>>>> >> > emp22<br>
>>>>> >> > EMP22<br>
>>>>> >> > emp20<br>
>>>>> >> > EMP20<br>
>>>>> >> > .........<br>
>>>>> >> > .........<br>
>>>>> >> > ..........<br>
>>>>> >> ><br>
>>>>> >> > The above coding retrieves only emp22 and emp20<br>
>>>>> >> > I want to retrieve EMP22 and EMP20 also.<br>
>>>>> >> ><br>
>>>>> >> ><br>
>>>>> >> > Thanks<br>
>>>>> >> > $B%H%^%9(B<br>
>>>>> >> ><br>
>>>>> >> ><br>
>>>>> >> ><br>
>>>>> >> > 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>><br>
>>>>> >> >><br>
>>>>> >> >> hai,<br>
>>>>> >> >><br>
>>>>> >> >> Thanks for your helps!..<br>
>>>>> >> >><br>
>>>>> >> >><br>
>>>>> >> >><br>
>>>>> >> >> On Tue, Jun 9, 2009 at 6:00 PM, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>>>>> >> >>><br>
>>>>> >> >>> Hello,<br>
>>>>> >> >>><br>
>>>>> >> >>> Sorry! I mistook your DBFlute version.<br>
>>>>> >> >>> The method and class are supported since 0.9.5.<br>
>>>>> >> >>> So please upgrade DBFlute to 0.9.5 if possible.<br>
>>>>> >> >>><br>
>>>>> >> >>> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>>> >> >>> > hai,<br>
>>>>> >> >>> ><br>
>>>>> >> >>> > cb.query().setMemberName_<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> LikeSearch("s", new LikeSearchOption() {<br>
>>>>> >> >>> >> @Override<br>
>>>>> >> >>> >> public ExtensionOperand getExtensionOperand() {<br>
>>>>> >> >>> >> return<br>
>>>>> >> >>> >> WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>>>> >> >>> >> }<br>
>>>>> >> >>> >> }.likePrefix());<br>
>>>>> >> >>> ><br>
>>>>> >> >>> > import org.seasar.dbflute.dbway.ExtensionOperand;//Error<br>
>>>>> >> >>> ><br>
>>>>> >> >>> > there is no class in org.seasar.dbflute.dbway like<br>
>>>>> >> >>> > ExtensionOperand<br>
>>>>> >> >>> ><br>
>>>>> >> >>> ><br>
>>>>> >> >>> ><br>
>>>>> >> >>> > 2009/6/9 kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> Hello,<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> Please watch this test case:<br>
>>>>> >> >>> >> The method is 'test_likeSearch_caseInsensitive_Tx()'.<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> <a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-postgresql-example/src/test/java/com/example/dbflute/postgresql/dbflute/various/VendorCheckTest.java" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-postgresql-example/src/test/java/com/example/dbflute/postgresql/dbflute/various/VendorCheckTest.java</a><br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> cb.query().setMemberName_LikeSearch("s", new<br>
>>>>> >> >>> >> LikeSearchOption()<br>
>>>>> >> >>> >> {<br>
>>>>> >> >>> >> @Override<br>
>>>>> >> >>> >> public ExtensionOperand getExtensionOperand() {<br>
>>>>> >> >>> >> return<br>
>>>>> >> >>> >> WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>>>> >> >>> >> }<br>
>>>>> >> >>> >> }.likePrefix());<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> This code uses 'ilike' in the SQL.<br>
>>>>> >> >>> >> (But this way is only available at PostgreSQL)<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> If you have many many points that must be without case<br>
>>>>> >> >>> >> sensitive,<br>
>>>>> >> >>> >> you should create CaseInsensitiveLikeSearchOption as your<br>
>>>>> >> >>> >> original<br>
>>>>> >> >>> >> class.<br>
>>>>> >> >>> >> Like this:<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> public class CaseInsensitiveLikeSearchOption extends<br>
>>>>> >> >>> >> LikeSearchOption<br>
>>>>> >> >>> >> {<br>
>>>>> >> >>> >> @Override<br>
>>>>> >> >>> >> public ExtensionOperand getExtensionOperand() {<br>
>>>>> >> >>> >> return<br>
>>>>> >> >>> >> WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>>>> >> >>> >> }<br>
>>>>> >> >>> >> }<br>
>>>>> >> >>> >><br>
>>>>> >> >>> >> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>>> >> >>> >> > Hai,<br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> > I am using PostgresQL 8.3<br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> > 2009/6/9 kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>><br>
>>>>> >> >>> >> >><br>
>>>>> >> >>> >> >> Hello, this is jflute.<br>
>>>>> >> >>> >> >><br>
>>>>> >> >>> >> >> For starters, there is one thing I want to confirm.<br>
>>>>> >> >>> >> >> What kind of database do you use?<br>
>>>>> >> >>> >> >> Oracle? MySQL? PostgreSQL? ...<br>
>>>>> >> >>> >> >><br>
>>>>> >> >>> >> >> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>>>> >> >>> >> >> > Hai,<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > I want to retrieve data without case sensitive using<br>
>>>>> >> >>> >> >> > condition<br>
>>>>> >> >>> >> >> > Bean.<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > dbflute version 0.9.4.1<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > empCB.query().setEmployeecode_LikeSearch(empcodes,new<br>
>>>>> >> >>> >> >> > LikeSearchOption());<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > How to change this code to get case sensitive result?<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > Please give steps to achieve this...<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > Thanks in advance.<br>
>>>>> >> >>> >> >> > $B%H%^%9(B<br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> > _______________________________________________<br>
>>>>> >> >>> >> >> > Seasar-user mailing list<br>
>>>>> >> >>> >> >> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> >> >> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> ><br>
>>>>> >> >>> >> >> _______________________________________________<br>
>>>>> >> >>> >> >> Seasar-user mailing list<br>
>>>>> >> >>> >> >> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> >> >> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> > _______________________________________________<br>
>>>>> >> >>> >> > Seasar-user mailing list<br>
>>>>> >> >>> >> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> >> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> ><br>
>>>>> >> >>> >> _______________________________________________<br>
>>>>> >> >>> >> Seasar-user mailing list<br>
>>>>> >> >>> >> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> >> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >>> ><br>
>>>>> >> >>> ><br>
>>>>> >> >>> > _______________________________________________<br>
>>>>> >> >>> > Seasar-user mailing list<br>
>>>>> >> >>> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >>> ><br>
>>>>> >> >>> ><br>
>>>>> >> >>> _______________________________________________<br>
>>>>> >> >>> Seasar-user mailing list<br>
>>>>> >> >>> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> >>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> >><br>
>>>>> >> ><br>
>>>>> >> ><br>
>>>>> >> > _______________________________________________<br>
>>>>> >> > Seasar-user mailing list<br>
>>>>> >> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> >> ><br>
>>>>> >> ><br>
>>>>> >> _______________________________________________<br>
>>>>> >> Seasar-user mailing list<br>
>>>>> >> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> >> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> ><br>
>>>>> ><br>
>>>>> > _______________________________________________<br>
>>>>> > Seasar-user mailing list<br>
>>>>> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>>> ><br>
>>>>> ><br>
>>>>> _______________________________________________<br>
>>>>> Seasar-user mailing list<br>
>>>>> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Seasar-user mailing list<br>
>>>> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>>>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>>><br>
>>>><br>
>>><br>
>> _______________________________________________<br>
>> Seasar-user mailing list<br>
>> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>><br>
> _______________________________________________<br>
> Seasar-user mailing list<br>
> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br>