旋喘Ant才XDoclet徭強恢伏啌符猟周箭徨
扮寂:2011-01-22 BlogJava Werther
//User.java
壓二匍嶄model窃議奉來辛嬬嗤叱為倖遇拝珊辛嬬写覚阻載謹奉來?宸劔議model泌惚返亟啌符猟周難音頁載寄議垢殻?
宸戦初府Ant+XDoclet塘栽栖徭強伏撹啌符猟周。
駅姥?Ant才XDocle議jar淫。
荷恬載酒汽?徭失亟匯倖model窃箭泌People.java,徽頁勣徭強伏撹啌符猟周宸倖窃俶勣嗤廣瞥?亟匯倖build.xml猟周?
和墮Xdoclet?利峽?http://xdoclet.sourceforge.net/
仟秀淫com.test.model?贋慧糞悶窃Group?User
package dbdemo;
import java.util.Date;
import java.util.Set;
/**
* @hibernate.class table="Users"
*
* @author Ethan
*
* Represents a User
*/
public class User {
private String userID;
private String userName;
private String password;
private String emailAddress;
private Date lastLogon;
private Set contacts;
private Set books;
private Address address;
/**
* @hibernate.property column="EmailAddress" type="string"
* @return String
*/
public String getEmailAddress() {
return emailAddress;
}
/**
* @hibernate.property column="LastLogon" type="date"
* @return Date
*/
public Date getLastLogon() {
return lastLogon;
}
/**
* @hibernate.property column="Password" type="string"
* @return String
*/
public String getPassword() {
return password;
}
/**
* @hibernate.id generator-class="assigned" type="string"
* column="LogonID"
* @return String
*/
public String getUserID() {
return userID;
}
/**
* @hibernate.property column="Name" type="string"
* @return String
*/
public String getUserName() {
return userName;
}
/**
* @param string
*/
public void setEmailAddress(String string) {
emailAddress = string;
}
/**
* @param string
*/
public void setLastLogon(Date date) {
lastLogon = date;
}
/**
* @param string
*/
public void setPassword(String string) {
password = string;
}
/**
* @param string
*/
public void setUserID(String string) {
userID = string;
}
/**
* @param string
*/
public void setUserName(String string) {
userName
|