001/**
002 * Copyright 2005-2014 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
024/**
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027@Entity
028@Table(name="KRNS_MAINT_DOC_ATT_T",uniqueConstraints= {
029        @UniqueConstraint(name="KRNS_MAINT_DOC_ATT_TC0",columnNames="OBJ_ID")
030})
031public class DocumentAttachment extends PersistableAttachmentBase {
032
033    private static final long serialVersionUID = 1L;
034
035    @Id
036    @Column(name="DOC_HDR_ID",length=14)
037    private String documentNumber;
038
039    public String getDocumentNumber() {
040        return this.documentNumber;
041    }
042
043    public void setDocumentNumber(String documentNumber) {
044        this.documentNumber = documentNumber;
045    }
046}