摘要: ***************public void Map_Add() { Session session = null; Transaction tx = null; try { City city1 = new City(); city1.setName("中国·唐山"); city1.setPostcode("063009"); City city2 = new City(); city2.setName("中国·天... 阅读全文
posted @ 2012-08-22 18:59 xzf007 阅读(274) 评论(0) 推荐(0) 编辑
摘要: *************City.java************package blog.hibernate.domain; public class City { private int id; private String name; private String postcode; private Nation nation; public String getPostcode() { return postcode; } public void setPostcode(String postcode) ... 阅读全文
posted @ 2012-08-22 16:51 xzf007 阅读(206) 评论(0) 推荐(0) 编辑