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

com.elephantdrummer.model.PtTrigger Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package com.elephantdrummer.model;

import java.math.BigDecimal;

//import javax.ejb.TransactionManagement;
//import javax.ejb.TransactionManagementType;
//import javax.persistence.Cacheable;
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.PrePersist;
//import javax.persistence.PreUpdate;
//import javax.persistence.Table;
//import javax.persistence.Transient;
//
//import com.elephant.drummer.dao.structure.EntityNamedWithId;


//@Entity
//@Table(name = "PT_TRIGGER")
//@Cacheable(value = false)
//@TransactionManagement(TransactionManagementType.BEAN)

/**
 * Copyright 2018 Elephant Software Klaudiusz Wojtkowiak e-mail: [email protected]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0 
 *  
 *  Unless required by applicable law or agreed to in writing, software 
 *  distributed under the License is distributed on an "AS IS" BASIS, 
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 *  See the License for the specific language governing permissions and 
 *  limitations under the License. 
 */
public class PtTrigger {//implements EntityNamedWithId {

	private static final long serialVersionUID = 1L;

	// Fields

	private BigDecimal ptTriggerId;
//	@Convert(converter=ConverterTriggerType.class)
	private String type;
	private String description;
	private String name;

	public PtTrigger() {
	};



	// Property accessors

//	@Id
//	//@Column(name = "PT_TRIGGER_ID", precision = 22, scale = 0)
//	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public BigDecimal getPtTriggerId() {
		return this.ptTriggerId;
	}

	public void setPtTriggerId(BigDecimal ptTriggerId) {
		this.ptTriggerId = ptTriggerId;
	}



	//@Column(name = "TYPE", length = 512)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


	//@Column(name = "DESCRIPTION")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
//	@PrePersist
//	@PreUpdate
	public void preUpdate() {
	}



	//@Column(name = "NAME", length = 512)
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}

//	@Transient
//	@Override
	public BigDecimal getId() {
		return getPtTriggerId();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy