小编vah*_*apt的帖子

如何在Ubuntu 12.04 LTS上安装Postgresql v9.1和JBoss AS v7.1.1

有很多很好的资源来描述如何在Ubuntu 12.04 LTS上安装Postgresql和JBoss,但信息是在其他页面上分发的.

但是,最好有一个walktrough指南来轻松安装和配置它们.

postgresql ubuntu jboss7.x

4
推荐指数
1
解决办法
3964
查看次数

MyBatis - Where子句中的嵌套条件

我在MyBatis v3 mapper xml中动态生成where子句.但放置括号真的很麻烦.是否有一种更简单的方法来处理问题而不使用if语句?

<where>
  <if test="filter != null">
    <choose>
      <when test="filter.lref != null">
        file.lref = #{filter.lref}
      </when>
      <otherwise>
        <!-- I don't want to use this -->
        <if test="filter.forLike != null || filter.forInt != null">
          ( 
        </if>
        <if test="filter.forLike != null" >
          subject LIKE #{filter.forLike}    
          OR requester_identifier LIKE #{filter.forLike}
          OR requester_name LIKE #{filter.forLike}
        </if>
        <if test="filter.forInt != null">
          OR file_id = #{filter.forInt}
        </if>

        <!-- I don't want to use this -->
        <if test="filter.forLike != null || filter.forInt != null">
          ) …
Run Code Online (Sandbox Code Playgroud)

ibatis mybatis

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

ibatis ×1

jboss7.x ×1

mybatis ×1

postgresql ×1

ubuntu ×1