随笔分类 - 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 ...
阅读全文