随笔分类 -  Hibernate

摘要:many –to –one假设2个对象,分别是Person and Address .1个Address中含有多个Person分别建立类package cn.itcase.hibernate.domain;public class Address { private int id; private String street; public int getId() { return id; }public void setId(int id) { this.id = id; }public String getStreet() { return ... 阅读全文
posted @ 2012-12-15 21:34 meetweb 阅读(436) 评论(0) 推荐(0) 编辑