摘要:
package entity;public class User { private String id; private String name; public String getId() { return id; } public void setId(String id) { this.... 阅读全文
摘要:
学生添加姓名:密码:年龄:性别:出生年月:爱好:省份:城市:地址:将前台的name都设为student.**package com.action;import java.io.IOException;import java.util.ArrayList;import java.util.List;i... 阅读全文
摘要:
package com.action;import java.io.IOException;import java.util.ArrayList;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServ... 阅读全文
摘要:
StudentAction.javapackage com.action;import java.util.ArrayList;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServletReques... 阅读全文
摘要:
package com.entity;public class User { private String username; private String password; private Integer id; public String getUsername() { return use... 阅读全文
摘要:
package com;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;i... 阅读全文
摘要:
package com.entity;import javax.persistence.Entity;import javax.persistence.OneToOne;@Entitypublic class Husband extends BaseEntity { @OneToOne(mapped... 阅读全文
摘要:
package com.entity.onetomany;import java.util.ArrayList;import java.util.List;import javax.persistence.Entity;import javax.persistence.OneToMany;impor... 阅读全文
摘要:
package com.entity.manytomany;import java.util.List;import javax.persistence.Entity;import javax.persistence.JoinColumn;import javax.persistence.JoinT... 阅读全文
摘要:
ReturnName returnname.htmlpackage controller;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;import ... 阅读全文