介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: child.java
//$Id: Child.java,v 1.1 2005/03/17 05:56:00 oneovthafew Exp $
package org.hibernate.test.subselectfetch;
import java.util.List;
/**
* @author Gavin King
*/
public class Child {
private String name;
private List friends;
Child() {}
public Child(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getFriends() {
return friends;
}
public void setFriends(List friends) {
this.friends = friends;
}
}