All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pms.common.entity.AuthPolicyHPK Maven / Gradle / Ivy

There is a newer version: 1.3.0-dp.1
Show newest version
package io.mosip.pms.common.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The primary key class for the auth_policy_h database table.
 * 
 */
/**
 * @author Nagarjuna Kuchi
 *
 */
@Embeddable
public class AuthPolicyHPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="eff_dtimes")
	private java.util.Date effDtimes;

	public AuthPolicyHPK() {
	}
	public String getId() {
		return this.id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public java.util.Date getEffDtimes() {
		return this.effDtimes;
	}
	public void setEffDtimes(java.util.Date effDtimes) {
		this.effDtimes = effDtimes;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof AuthPolicyHPK)) {
			return false;
		}
		AuthPolicyHPK castOther = (AuthPolicyHPK)other;
		return 
			this.id.equals(castOther.id)
			&& this.effDtimes.equals(castOther.effDtimes);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.id.hashCode();
		hash = hash * prime + this.effDtimes.hashCode();
		
		return hash;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy