`

There is no READABLE property named * in class 'java.lang.Integer'

阅读更多
使用ibatis出现了下列问题:
There is no READABLE property named 'parent' in class 'java.lang.Integer'

引用
class 'java.lang.Integer'


呵呵,看看ibatis动态拼凑

<select id="getFolderList" resultMap="fileDiskResult"
		parameterClass="java.lang.Integer">
		 <include refid="selec_fragment"/>
		<![CDATA[
		  AND a.file_type = 0 
       ]]>
        
       <dynamic>
         <isEqual prepend="AND" property="parent" compareValue="0"> a.parent=#value# </isEqual>
         <isNotEqual prepend="AND" property="parent" compareValue="0"> (a.parent=#value# or a.file_id=#value#) </isNotEqual>
       < dynamic>
    
       <![CDATA[
       	   order by a.file_name
        ]]>
       
	< lect>


上面dynamic代码更改一下

 <dynamic>
         <isEqual prepend="AND" property="value" compareValue="0"> a.parent=#value# </isEqual>
         <isNotEqual prepend="AND" property="value" compareValue="0"> (a.parent=#value# or a.file_id=#value#) </isNotEqual>
       < dynamic>



呵呵,OK!
一起学习一下吧
一元判定
一元判定是针对属性值本身的判定,如属性是否为NULL,是否为空值等。
上面示例中isNotEmpty就是典型的一元判定。
一元判定节点有:
节点名描述
<isPropertyAvailable> 参数类中是否提供了此属性
<isNotPropertyAvailable> 与<isPropertyAvailable>相反
<isNull> 属性值是否为NULL
<isNotNull> 与<isNull>相反
<isEmpty> 如果属性为Collection或者String,其size是否<1,
如果非以上两种类型,则通过
String.valueOf(属性值)
获得其String类型的值后,判断其size是否<1
<isNotEmpty> 与<isEmpty>相反。
Ø 二元判定
二元判定有两个判定参数,一是属性名,而是判定值,如
<isGreaterThan prepend="AND" property="age"
compareValue="18">
(age=#age#)
</isGreaterThan>
其中,property="age"指定了属性名”age”,compareValue=”18”指明
了判定值为”18”。
上面判定节点isGreaterThan 对应的语义是:如果age 属性大于
18(compareValue),则在SQL中加入(age=#age#)条件。
二元判定节点有:
节点名属性值与compareValues的关系
<isEqual> 相等。
<isNotEqual> 不等。
<isGreaterThan> 大于
<isGreaterEqual> 大于等于
<isLessThan> 小于
<isLessEqual> 小于等于
分享到:
评论
1 楼 feiyu86 2011-02-23  
你改了两个地方,应该标出来一下嘛。
没看仔细的话,还是报错。。

相关推荐

    Learning.Reactive.Programming.With.Java.8

    The book starts with an explanation of what reactive programming is, why it is so appealing, and how we can integrate it in to Java. It continues by introducing the new Java 8 syntax features, such as...

    PyPI 官网下载 | xontrib-readable-traceback-0.2.4.tar.gz

    资源来自pypi官网。 资源全名:xontrib-readable-traceback-0.2.4.tar.gz

    File_实用案例_实现文件拷贝_FileCopy.java

    * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-...

    Java NIO原理和使用

    Java NIO非堵塞应用通常适用用在I/O读写等方面,我们知道,系统运行的性能瓶颈通常在I/O读写,包括对端口和文件的操作上,过去,在打开一个I/O通道后,read()将一直等待在端口一边读取字节内容,如果没有内容进来,...

    EurekaLog_7.5.0.0_Enterprise

    32)..Changed: Descriptions of EurekaLog project options now list corresponding property names of TEurekaModuleOptions class. 33)..Changed: Default template of ...

    Making java groovy

    because the Groovy syntax is light and readable but still resembles that of Java. For interacting with XML payloads, web services, or databases, Groovy provides handy and elegant wrappers around the ...

    Writing.An.Interpreter.In.Go.epub

    In this book we will create a programming language together. We'll start with 0 lines of code and end up with a fully working interpreter for the Monkey* programming language. Step by step. From ...

    Python Algorithms - Mastering Basic Algorithms in the Python Language

    * The book deals with some of the most important and challenging areas of programming and computer science, but in a highly pedagogic and readable manner. * The book covers both algorithmic theory ...

    Programming.in.D.Tutorial.and.Reference.1515074609

    “I taught a CS2 Data Structures class in D with more success and student appreciation than when using either C++ or Java as it's an ideal language to express the relevant concepts at all scales, from...

    jQuery-Plugin-For-Easily-Readable-JSON-Data-Viewer.zip

    一个格式化json的jquery插件。支持折叠、打开,而且在折叠后可以看到下面有多少个子节点。有源码、示例。

    Python Algorithms

    * The book deals with some of the most important and challenging areas of programming and computer science, but in a highly pedagogic and readable manner. * The book covers both algorithmic theory ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    However, implementation code properly belongs in .cc files, and we do not like to have much actual code in .h files unless there is a readability or performance advantage. If an inline function ...

    Java NIO 聊天室 JSwing

    import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ServerBootFrame extends JFrame { /** * */ private static final long serialVersionUID = 1L; JPanel jp = new ...

    rh-nodejs8-nodejs-readable-stream-2.1.4-2.el7.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    rh-nodejs6-nodejs-readable-stream-2.1.4-2.el7.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    rh-nodejs6-nodejs-readable-stream-2.1.4-1.el7.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    python algorithms.pdf下载原版高清

    * The book deals with some of the most important and challenging areas of programming and computer science, but in a highly pedagogic and readable manner. * The book covers both algorithmic theory ...

    apktool documentation

    Viewing AndroidManifest.xml again results in something much more human readable &lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt; &lt;manifest xmlns:android="https://schemas.android....

    device is not readable_Mac Big Sur删除快照实操日志

    这是一个终端操作日志,如果你电脑安装了黑苹果Mac Big Sur,是否有遇到电脑疯了似的刷屏,比如disk3s5s1:device is not readable,直到满屏幕都是,它还不肯罢休。等你查完磁盘路径,发现正是新安装的系统磁盘。...

Global site tag (gtag.js) - Google Analytics