标签:
1、String format用法:
String query = "FROM Resource WHERE 1=1 %s"; String condition = "AND type=1 OR type=2 "; String hql = String.format(query, condition);
java语言基础
原文地址:http://www.cnblogs.com/tyb1222/p/4303406.html