Newer
Older
CosmosServer / src / test / java / hibernateTest / entities / Belong.java
package hibernateTest.entities;

public class Belong {
    private String uId, gId;

    public Belong(){

    }

    public Belong(String uId, String gId){
        setuId(uId);
        setgId(gId);
    }

    private void setuId(String uId) {
        this.uId = uId;
    }

    public String getuId() {
        return uId;
    }

    private void setgId(String gId) {
        this.gId = gId;
    }

    public String getgId() {
        return gId;
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

//    @Override
//    public int hashCode() {
//        return super.hashCode();
//    }
}