![JAR search and dependency download from the Maven repository](/logo.png)
com.elephantdrummer.model.PtTriggerApplication Maven / Gradle / Ivy
package com.elephantdrummer.model;
import java.math.BigDecimal;
import java.util.Date;
/**
* 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.
*/
//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.EntityWithId;
//@Entity
//@Table(name = "PT_TRIGGER_APPLICATION")
//@Cacheable(value = false)
//@TransactionManagement(TransactionManagementType.BEAN)
public class PtTriggerApplication {//implements EntityWithId {
private static final long serialVersionUID = 1L;
// Fields
private BigDecimal ptTriggerApplicationId;
private BigDecimal ptTriggerId;
private BigDecimal ptApplicationId;
private Date lastUpdateDate;
public PtTriggerApplication() {
};
// Property accessors
// @Id
// @Column(name = "PT_TRIGGER_APPLICATION_ID", precision = 22, scale = 0)
// @GeneratedValue(strategy = GenerationType.IDENTITY)
public BigDecimal getPtTriggerApplicationId() {
return this.ptTriggerApplicationId;
}
public void setPtTriggerApplicationId(BigDecimal ptTriggerApplicationId) {
this.ptTriggerApplicationId = ptTriggerApplicationId;
}
// @Column(name = "PT_TRIGGER_ID", length = 512)
public BigDecimal getPtTriggerId() {
return this.ptTriggerId;
}
public void setPtTriggerId(BigDecimal ptTriggerId) {
this.ptTriggerId = ptTriggerId;
}
// @Column(name = "PT_APPLICATION_ID")
public BigDecimal getPtApplicationId() {
return this.ptApplicationId;
}
public void setPtApplicationId(BigDecimal ptApplicationId) {
this.ptApplicationId = ptApplicationId;
}
// @PrePersist
// @PreUpdate
public void preUpdate() {
setLastUpdateDate(new Date());
}
// @Temporal(TemporalType.TIMESTAMP)
// @Column(name = "LAST_UPDATE_DATE")
public Date getLastUpdateDate() {
return lastUpdateDate;
}
public void setLastUpdateDate(Date lastUpdateDate) {
this.lastUpdateDate = lastUpdateDate;
}
// @Transient
// @Override
public BigDecimal getId() {
return getPtTriggerApplicationId();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy