-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JavaEE Enterprise Basic Development Platform
New version 4.4.0-RELEASE_fixed.1 release! # fixed Hibernate JPA Named Parameter bugs.
- Loading branch information
Showing
9 changed files
with
10 additions
and
170 deletions.
There are no files selected for viewing
54 changes: 0 additions & 54 deletions
54
...t/easyee-sh-springboot/src/main/java/cn/easyproject/easyee/sh/base/util/EasyCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,6 @@ | ||
package cn.easyproject.easyee.sh.base.util; | ||
|
||
|
||
/** | ||
* 按条件查询抽象父类(可以结合分页PageBean使用) | ||
* | ||
* SysUserCriteria Demo: <br> | ||
* | ||
* <pre><code> | ||
* public class SysUserCriteria extends EasyCriteria implements java.io.Serializable { | ||
* // 1. Criteria field | ||
* private String name; | ||
* private String realName; | ||
* private Integer status; // 0 is ON; 1 is OFF; 2 is REMOVED | ||
* | ||
* // 2. Constructor | ||
* public SysUserCriteria() { | ||
* } | ||
* | ||
* public SysUserCriteria(String name, String realName, Integer status) { | ||
* super(); | ||
* this.name = name; | ||
* this.realName = realName; | ||
* this.status = status; | ||
* } | ||
* | ||
* // 3. Condition genertator abstract method implements | ||
* public String getCondition() { | ||
* values.clear(); // **Must clear old values** | ||
* StringBuffer condition = new StringBuffer(); | ||
* if (StringUtils.isNotNullAndEmpty(this.getName())) { | ||
* condition.append(" and name like ?"); | ||
* values.add("%" + this.getName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getRealName())) { | ||
* condition.append(" and realName like ?"); | ||
* values.add("%" + this.getRealName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getStatus())) { | ||
* condition.append(" and status=?"); | ||
* values.add(this.getStatus()); | ||
* } | ||
* return condition.toString(); | ||
* } | ||
* | ||
* // 4. Setters&Getters... | ||
* | ||
* } | ||
* </code></pre> | ||
* | ||
* @author Ray | ||
* @author [email protected] | ||
* @author easyproject.cn | ||
* @since 1.0.0 | ||
*/ | ||
|
||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
project/easyee-sh/src/main/java/cn/easyproject/easyee/sh/base/util/EasyCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,5 @@ | ||
package cn.easyproject.easyee.sh.base.util; | ||
|
||
|
||
/** | ||
* 按条件查询抽象父类(可以结合分页PageBean使用) | ||
* | ||
* SysUserCriteria Demo: <br> | ||
* | ||
* <pre><code> | ||
* public class SysUserCriteria extends EasyCriteria implements java.io.Serializable { | ||
* // 1. Criteria field | ||
* private String name; | ||
* private String realName; | ||
* private Integer status; // 0 is ON; 1 is OFF; 2 is REMOVED | ||
* | ||
* // 2. Constructor | ||
* public SysUserCriteria() { | ||
* } | ||
* | ||
* public SysUserCriteria(String name, String realName, Integer status) { | ||
* super(); | ||
* this.name = name; | ||
* this.realName = realName; | ||
* this.status = status; | ||
* } | ||
* | ||
* // 3. Condition genertator abstract method implements | ||
* public String getCondition() { | ||
* values.clear(); // **Must clear old values** | ||
* StringBuffer condition = new StringBuffer(); | ||
* if (StringUtils.isNotNullAndEmpty(this.getName())) { | ||
* condition.append(" and name like ?"); | ||
* values.add("%" + this.getName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getRealName())) { | ||
* condition.append(" and realName like ?"); | ||
* values.add("%" + this.getRealName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getStatus())) { | ||
* condition.append(" and status=?"); | ||
* values.add(this.getStatus()); | ||
* } | ||
* return condition.toString(); | ||
* } | ||
* | ||
* // 4. Setters&Getters... | ||
* | ||
* } | ||
* </code></pre> | ||
* | ||
* @author Ray | ||
* @author [email protected] | ||
* @author easyproject.cn | ||
* @since 1.0.0 | ||
*/ | ||
|
||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 1 addition & 52 deletions
53
project/easyee-ssh/src/main/java/cn/easyproject/easyee/ssh/base/util/EasyCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,7 @@ | ||
package cn.easyproject.easyee.ssh.base.util; | ||
|
||
|
||
/** | ||
* 按条件查询抽象父类(可以结合分页PageBean使用) | ||
* | ||
* SysUserCriteria Demo: <br> | ||
* | ||
* <pre><code> | ||
* public class SysUserCriteria extends EasyCriteria implements java.io.Serializable { | ||
* // 1. Criteria field | ||
* private String name; | ||
* private String realName; | ||
* private Integer status; // 0 is ON; 1 is OFF; 2 is REMOVED | ||
* | ||
* // 2. Constructor | ||
* public SysUserCriteria() { | ||
* } | ||
* | ||
* public SysUserCriteria(String name, String realName, Integer status) { | ||
* super(); | ||
* this.name = name; | ||
* this.realName = realName; | ||
* this.status = status; | ||
* } | ||
* | ||
* // 3. Condition genertator abstract method implements | ||
* public String getCondition() { | ||
* values.clear(); // **Must clear old values** | ||
* StringBuffer condition = new StringBuffer(); | ||
* if (StringUtils.isNotNullAndEmpty(this.getName())) { | ||
* condition.append(" and name like ?"); | ||
* values.add("%" + this.getName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getRealName())) { | ||
* condition.append(" and realName like ?"); | ||
* values.add("%" + this.getRealName() + "%"); | ||
* } | ||
* if (StringUtils.isNotNullAndEmpty(this.getStatus())) { | ||
* condition.append(" and status=?"); | ||
* values.add(this.getStatus()); | ||
* } | ||
* return condition.toString(); | ||
* } | ||
* | ||
* // 4. Setters&Getters... | ||
* | ||
* } | ||
* </code></pre> | ||
* | ||
* @author Ray | ||
* @author [email protected] | ||
* @author easyproject.cn | ||
* @since 1.0.0 | ||
*/ | ||
|
||
|
||
|
||
import java.util.HashMap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters