001/** 002 * Copyright 2005-2017 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kew.impl.stuck; 017 018import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator; 019 020import javax.persistence.Column; 021import javax.persistence.Entity; 022import javax.persistence.GeneratedValue; 023import javax.persistence.Id; 024import javax.persistence.NamedQueries; 025import javax.persistence.NamedQuery; 026import javax.persistence.Table; 027import java.sql.Timestamp; 028 029@Entity 030@Table(name = "KREW_STUCK_DOC_FIX_ATTMPT_T") 031@NamedQueries({ 032 @NamedQuery(name = StuckDocumentDaoJpa.FIX_ATTEMPTS_FOR_INCIDENT_NAME, 033 query = StuckDocumentDaoJpa.FIX_ATTEMPTS_FOR_INCIDENT_QUERY) 034}) 035public class StuckDocumentFixAttempt { 036 037 @Id 038 @GeneratedValue(generator = "KREW_STUCK_DOC_FIX_ATTMPT_S") 039 @PortableSequenceGenerator(name = "KREW_STUCK_DOC_FIX_ATTMPT_S") 040 @Column(name = "STUCK_DOC_FIX_ATTMPT_ID", nullable = false) 041 private String stuckDocumentFixAttemptId; 042 043 @Column(name = "STUCK_DOC_INCIDENT_ID", nullable = false) 044 private String stuckDocumentIncidentId; 045 046 @Column(name = "ATTMPT_TS", nullable = false) 047 private Timestamp timestamp; 048 049 public String getStuckDocumentFixAttemptId() { 050 return stuckDocumentFixAttemptId; 051 } 052 053 public void setStuckDocumentFixAttemptId(String stuckDocumentFixAttemptId) { 054 this.stuckDocumentFixAttemptId = stuckDocumentFixAttemptId; 055 } 056 057 public String getStuckDocumentIncidentId() { 058 return stuckDocumentIncidentId; 059 } 060 061 public void setStuckDocumentIncidentId(String stuckDocumentIncidentId) { 062 this.stuckDocumentIncidentId = stuckDocumentIncidentId; 063 } 064 065 public Timestamp getTimestamp() { 066 return timestamp; 067 } 068 069 public void setTimestamp(Timestamp timestamp) { 070 this.timestamp = timestamp; 071 } 072 073}