init
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
package model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.*;
|
||||
|
||||
/**
|
||||
* The primary key class for the tseaiad15 database table.
|
||||
*
|
||||
*/
|
||||
@Embeddable
|
||||
public class Tseaiad15PK implements Serializable {
|
||||
//default serial version id, required for serializable classes.
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Column(unique=true, nullable=false, length=50)
|
||||
private String prptygroupname;
|
||||
|
||||
@Column(unique=true, nullable=false, length=100)
|
||||
private String prptyname;
|
||||
|
||||
public Tseaiad15PK() {
|
||||
}
|
||||
public String getPrptygroupname() {
|
||||
return this.prptygroupname;
|
||||
}
|
||||
public void setPrptygroupname(String prptygroupname) {
|
||||
this.prptygroupname = prptygroupname;
|
||||
}
|
||||
public String getPrptyname() {
|
||||
return this.prptyname;
|
||||
}
|
||||
public void setPrptyname(String prptyname) {
|
||||
this.prptyname = prptyname;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof Tseaiad15PK)) {
|
||||
return false;
|
||||
}
|
||||
Tseaiad15PK castOther = (Tseaiad15PK)other;
|
||||
return
|
||||
this.prptygroupname.equals(castOther.prptygroupname)
|
||||
&& this.prptyname.equals(castOther.prptyname);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int hash = 17;
|
||||
hash = hash * prime + this.prptygroupname.hashCode();
|
||||
hash = hash * prime + this.prptyname.hashCode();
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user