JdbcPet.java

36 lines | 601 B Blame History Raw Download
package org.springframework.samples.petclinic.jdbc;

import org.springframework.samples.petclinic.Pet;

/**
 * Subclass of Pet that carries temporary id properties which
 * are only relevant for a JDBC implmentation of the Clinic.
 *
 * @author Juergen Hoeller
 * @see JdbcClinic
 */
class JdbcPet extends Pet {

	private int typeId;

	private int ownerId;


	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}

	public int getTypeId() {
		return this.typeId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}

	public int getOwnerId() {
		return this.ownerId;
	}

}