<filename>src/main/java/org/jasig/portlet/survey/service/jpa/JpaSurveyTextPK.java<gh_stars>1-10
/**
 * Licensed to Apereo under one or more contributor license
 * agreements. See the NOTICE file distributed with this work
 * for additional information regarding copyright ownership.
 * Apereo licenses this file to you 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 the following location:
 *
 *   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.
 */
package org.jasig.portlet.survey.service.jpa;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * The primary key class for the survey_text database table.
 * 
 * @author chasegawa
 * @since 1.0
 */
@Embeddable
public class JpaSurveyTextPK implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Column(name = "TEXT_KEY", nullable = false, unique = false)
    private String key;
    
    /**
     * variant will not always be set (the default would have nothing here).
     */
    @Column(name = "VARIANT", nullable = false,  unique = false)
    private String variant = "";

    public String getKey() {
        return key;
    }

    public String getVariant() {
        return variant;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setVariant(String variant) {
        this.variant = variant;
    }

}
