view src/main/java/de/intevation/lada/model/LKommentarMId.java @ 246:7a1bbd96cecd

Get id for LKommentarM manually from database.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 15 Jul 2013 15:36:54 +0200
parents 034db67bc1e8
children 183f8116d9a6
line wrap: on
line source
package de.intevation.lada.model;

// Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * LKommentarMId generated by hbm2java
 */
@Embeddable
public class LKommentarMId implements java.io.Serializable {

	private String probeId;
	private Integer messungsId;
	private int KId;

	public LKommentarMId() {
	}

	public LKommentarMId(String probeId, Integer messungsId, int KId) {
		this.probeId = probeId;
		this.messungsId = messungsId;
		this.KId = KId;
	}

	@Column(name = "probe_id", nullable = false, length = 20)
	public String getProbeId() {
		return this.probeId;
	}

	public void setProbeId(String probeId) {
		this.probeId = probeId;
	}

	@Column(name = "messungs_id", nullable = false)
	public Integer getMessungsId() {
		return this.messungsId;
	}

	public void setMessungsId(Integer messungsId) {
		this.messungsId = messungsId;
	}

	@Column(name = "k_id", nullable = false)
	public int getKId() {
		return this.KId;
	}

	public void setKId(int KId) {
		this.KId = KId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof LKommentarMId))
			return false;
		LKommentarMId castOther = (LKommentarMId) other;

		return ((this.getProbeId() == castOther.getProbeId()) || (this
				.getProbeId() != null && castOther.getProbeId() != null && this
				.getProbeId().equals(castOther.getProbeId())))
				&& (this.getMessungsId() == castOther.getMessungsId())
				&& (this.getKId() == castOther.getKId());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getProbeId() == null ? 0 : this.getProbeId().hashCode());
		result = 37 * result + this.getMessungsId();
		result = 37 * result + this.getKId();
		return result;
	}

}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)