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

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

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

import java.math.BigDecimal;
import java.util.Date;

//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.Temporal;
//import javax.persistence.TemporalType;
//import javax.persistence.Transient;
//
//import com.elephant.drummer.dao.structure.EntityNamedWithId;


//@Entity
//@Table(name = "PT_EXECUTOR")
//@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 PtExecutor  {//implements EntityNamedWithId{

	private static final long serialVersionUID = 1L;

	private BigDecimal ptExecutorId;
	private String name;
//	@Convert(converter=ConverterJobType.class)
	private Date insertDate;

	public PtExecutor() {
	};


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

	public void setPtExecutorId(BigDecimal ptExecutorId) {
		this.ptExecutorId = ptExecutorId;
	} 

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

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

	
	
//	@PrePersist
//	@PreUpdate
	public void preUpdate() {
		setInsertDate(new Date());
	}
	
//	@Temporal(TemporalType.TIMESTAMP)
//	@Column(name = "INSERT_DATE")
	public Date getInsertDate() {
		return insertDate;
	}



	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}



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


	


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy