Rev 22859 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import java.io.Serializable;import javax.persistence.Column;import javax.persistence.EmbeddedId;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="fofo.scheme_in", schema = "fofo")public class SchemeIn implements Serializable{private static final long serialVersionUID = 1L;@Id@EmbeddedIdprivate SchemeInId id;@Column(name = "amount")private float amount;public SchemeInId getId() {return id;}public void setId(SchemeInId id) {this.id = id;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + id.hashCode();return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;SchemeIn other = (SchemeIn) obj;if (id != other.id)return false;return true;}@Overridepublic String toString() {return "SchemeIn [id=" + id + ", amount=" + amount + "]";}}