介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: child.java
//$Id: Child.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $ package org.hibernate.test.legacy; public class Child { private Parent parent; private int count; private int x; public int getX() { return x; } public void setX(int x) { this.x = x; } public Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public long getId() { return parent.getId(); } private void setId(long id) { } }