001/**
002 * Copyright 2005-2016 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.kim.bo.ui;
017
018import org.hibernate.annotations.GenericGenerator;
019import org.hibernate.annotations.Parameter;
020import org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase;
021
022import javax.persistence.Column;
023import javax.persistence.GeneratedValue;
024import javax.persistence.Id;
025
026/**
027 * This is a description of what this class does - jksmith don't forget to fill this in. 
028 * 
029 * @author Kuali Rice Team (rice.collab@kuali.org)
030 *
031 */
032public class PersonDocumentAffiliationId extends CompositePrimaryKeyBase {
033        @Id
034    @Column(name="FDOC_NBR")
035    protected String documentNumber;
036        
037        @Id
038        @GeneratedValue(generator="KRIM_ENTITY_AFLTN_ID_S")
039        @GenericGenerator(name="KRIM_ENTITY_AFLTN_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
040                        @Parameter(name="sequence_name",value="KRIM_ENTITY_AFLTN_ID_S"),
041                        @Parameter(name="value_column",value="id")
042                })
043        @Column(name = "ENTITY_AFLTN_ID")
044        protected String entityAffiliationId;
045
046        /**
047         * @return the documentNumber
048         */
049        public String getDocumentNumber() {
050                return this.documentNumber;
051        }
052
053        /**
054         * @return the delegationId
055         */
056        public String getEntityAffiliationId() {
057                return this.entityAffiliationId;
058        }
059}