上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 只需要把关联类配置lazy='false',也就是立即加载例如:public class stu{ private int stuid;}public class score{ private stu s;}stu.cfg.xml把lazy='false' 阅读全文
posted @ 2014-12-03 23:59 单方面 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 日期和时间验证或者按照指定的格式进行验证,或者使用的标准格式指定的区域设置。 日期验证 - 验证日期转换为java.util.Date的类型。 日历验证 - 验证日期转换为java.util.Calendar中的类型。 时间验证 - 验证时间转换为java.util.Calendar中的类型。 ... 阅读全文
posted @ 2014-10-29 09:54 单方面 阅读(5197) 评论(0) 推荐(0) 编辑
摘要: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MyBean myBean=new MyBean(); ... 阅读全文
posted @ 2014-10-27 02:50 单方面 阅读(673) 评论(0) 推荐(0) 编辑
摘要: public class Emp { private String firstName="李"; private String lastName; public Emp() { } ; public String getFirstName() { return firstName; } pub... 阅读全文
posted @ 2014-10-27 02:48 单方面 阅读(294) 评论(0) 推荐(0) 编辑
摘要: public class LazyBean {// public static void main(String[] args) {// DynaBean dynaBean=new LazyDynaBean();// dynaBean.set("foo", "bar");//单独// dyna... 阅读全文
posted @ 2014-10-27 02:47 单方面 阅读(250) 评论(0) 推荐(0) 编辑
摘要: public class JDBCTest {// public static void main(String[] args) throws Exception {// Class.forName("com.mysql.jdbc.Driver");// Connection conn=Driv... 阅读全文
posted @ 2014-10-27 02:45 单方面 阅读(190) 评论(0) 推荐(0) 编辑
摘要: public class Employee implements DynaBean { private String firstName="李"; private String lastName; public Employee() { } ; public String getFirstNam... 阅读全文
posted @ 2014-10-27 02:44 单方面 阅读(302) 评论(0) 推荐(0) 编辑
摘要: public Employee getEmployee(int index) { return new Employee(); }1、PropertyUtils.getIndexedProperty带2个参数 // public static void main(String[] args) t... 阅读全文
posted @ 2014-10-26 20:33 单方面 阅读(471) 评论(0) 推荐(0) 编辑
摘要: public class Employee { private String firstName; private String lastName; public Employee() { } ; public String getFirstName() { return firstName;... 阅读全文
posted @ 2014-10-26 20:12 单方面 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 所需要的jar包,c3p0-0.9.5-pre9.jar,mchange-commons-java-0.2.8.jar,hsqldb.jar//普通 public static void main(String[] args) { ComboPooledDataSource cpds = new ... 阅读全文
posted @ 2014-10-23 21:22 单方面 阅读(356) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页