摘要:
***************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("中国·天... 阅读全文
摘要:
*************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) ... 阅读全文