`
spoony_peng
  • 浏览: 5056 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表

struts test

    博客分类:
  • java
public class LoginAction extends Action {     public ActionForward perform(ActionMapping mapping,                                  ActionForm form,                                  HttpServletRequest request,                                  HttpServletResponse response)     {         String usern ...
public class TestDataUtil { @SuppressWarnings("rawtypes") public static Object loadTestData(String postfix, Class testClass, Class beanClass) throws Exception { String patch = System.getProperty("user.dir") + "/resource/" + testClass.getName().replace(" ...
@Entity public class Fighter { private Integer id; private AirLine line; private String fName; @Id @GeneratedValue public Integer getId() {    return id; } public void setId(Integer id) {    this.id = id; } @ManyToOne(optional=false) @JoinColumns(")}) public AirLine getLine() {    return line; ...
@Entity @Table(name="person") public class Person { private Long id; private String name; private Date birthday; private String note; private byte[] image; private Sex sex; @Id @GeneratedValue(strategy=GenerationType.AUTO) public Long getId() {    return id; } public void setId(Long id) { ...
@Entity @Table(name="teacher") public class Teacher { private Integer id; private String name; private Set<Student> students = new HashSet<Student>(); @ManyToMany @JoinTable(name="mid",inverseJoinColumns=@JoinColumn(name="studentid"),joinColumns=@JoinColumn(n ...
<project name="EJBDateSource" basedir="."> <property environment="env"> </property> <property name="JBOSS_HOME" value="${env.JBOSS_HOME}"> </property> <property name="src.dir" value="${basedir}\src" ...
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=localhost:1099
public boolean equals(Object obj) { if (obj == this)  //判断对象的内存地址是否相同 return true; if (!(obj instanceof CustTypeInfoPK)) //判断obj是否和CustTypeInfoPK属于同类 return false; CustTypeInfoPK pk = (CustTypeInfoPK) obj; if (!(custNo == pk.custNo)) //判断对象对的属性是否一致 return false; if (!(entryYear == pk.entry ...
Global site tag (gtag.js) - Google Analytics