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

io.bigdime.runtimeinfo.DTO.RuntimePropertyDTO Maven / Gradle / Ivy

There is a newer version: 0.9.3
Show newest version
/**
 * Copyright (C) 2015 Stubhub.
 */
package io.bigdime.runtimeinfo.DTO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


@Entity
@Table(name = "RUNTIME_PROPERTY",uniqueConstraints = @UniqueConstraint(columnNames ={ "RUNTIME_INFO_ID","PROPERTY_NAME"}))
public class RuntimePropertyDTO {
	
	@Column(name = "RUNTIME_PROPERTY_ID")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int runtimePropertyId;
	@Column(name = "PROPERTY_NAME")
	private String key;
	@Column(name = "PROPERTY_VALUE")
	private String value;
	
	
	public RuntimePropertyDTO() {
		super();
		// TODO Auto-generated constructor stub
	}


	public RuntimePropertyDTO(String key, String value) {
		super();
		this.key = key;
		this.value = value;
	}


	public int getRuntimePropertyId() {
		return runtimePropertyId;
	}


	public void setRuntimePropertyId(int runtimePropertyId) {
		this.runtimePropertyId = runtimePropertyId;
	}


	public String getKey() {
		return key;
	}


	public void setKey(String key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	@Override
	public String toString() {
		return "RuntimeProperty [runtimePropertyId=" + runtimePropertyId
				+ ", key=" + key + ", value=" + value + "]";
	}
	
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy