摘要: 第一种方法: 在hibernate.cfg.xml中<mapping resource="包名/Xxx.hbm.xml"/>包名为路径形式( x/x/x这种形式) 第二种方法: new Configuration().configure().addClass(类名.class); 会自动加载类名.h 阅读全文
posted @ 2016-04-30 21:54 李永 阅读(546) 评论(0) 推荐(0) 编辑