001/**
002 * Copyright 2005-2015 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.krad.bo;
017
018import javax.persistence.Column;
019import javax.persistence.Entity;
020import javax.persistence.Id;
021import javax.persistence.Table;
022import javax.persistence.UniqueConstraint;
023
024import org.eclipse.persistence.annotations.Index;
025
026/**
027 * @author Kuali Rice Team (rice.collab@kuali.org)
028 */
029@Entity
030@Table(name="KRNS_MAINT_DOC_ATT_LST_T",uniqueConstraints= {
031        @UniqueConstraint(name="KRNS_MAINT_DOC_ATT_LST_TC0",columnNames="OBJ_ID")
032})
033public class MultiDocumentAttachment extends PersistableAttachmentBase {
034    private static final long serialVersionUID = 1L;
035
036    @Id
037    @Column(name="ATT_ID",length=40)
038    private String id;
039
040    @Column(name="DOC_HDR_ID",length=14)
041    @Index(name="KRNS_MAINT_DOC_ATT_LST_TI1")
042    private String documentNumber;
043
044    public String getId() {
045        return this.id;
046    }
047
048    public void setId(String id) {
049        this.id = id;
050    }
051
052    public String getDocumentNumber() {
053        return this.documentNumber;
054    }
055
056    public void setDocumentNumber(String documentNumber) {
057        this.documentNumber = documentNumber;
058    }
059
060}