
Java
JTCC
苦海里挣扎的木鱼
展开
-
ibatis去除无用where条件
sql,ibatis文件不允许在where后添加1=1这样的无用条件,where可以写在prepend属性里转载 2016-04-28 18:58:34 · 958 阅读 · 0 评论 -
Java注解
1. 定义注解 @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface Persistent { enum FilterType { Numeric, String }; enum ResType { Rat, Cat, RatC原创 2016-05-29 22:02:12 · 435 阅读 · 0 评论 -
逻辑拼接
public class LogicalMdxTest { public static void main(String[] args) { String[] input = new String[] { "a and b or c and d or e", "a", "a and b", "a or b", "a and b and c", "a or b or c", "a原创 2017-11-10 22:46:11 · 363 阅读 · 0 评论