<commit_before>/**
 * Copyright 2005-2014 The Kuali Foundation
 *
 * Licensed under the Educational Community 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
 *
 * http://www.opensource.org/licenses/ecl2.php
 *
 * 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.kuali.rice.krad.demo.travel.dataobject;

import org.kuali.rice.krad.bo.DataObjectBase;
import org.kuali.rice.krad.data.provider.annotation.ForceUppercase;
import org.kuali.rice.krad.data.provider.annotation.Label;
import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViewType;
import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViews;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name="TRV_SUB_ACCT")
@UifAutoCreateViews({UifAutoCreateViewType.INQUIRY,UifAutoCreateViewType.LOOKUP})
public class TravelSubAccount extends DataObjectBase {

	private static final long serialVersionUID = 5768156680246084251L;

    @ManyToOne(targetEntity = TravelAccount.class, fetch = FetchType.EAGER, cascade = {})
    @JoinColumn(name = "ACCT_NUM" ,insertable=false, updatable=false)
    TravelAccount account;

    @Id
    @Column(name = "ACCT_NUM",length = 10)
    @Label("Travel Account Number")
    @NotNull
    private String travelAccountNumber;

	@Id
    @ForceUppercase
	@Column(name="SUB_ACCT",length=10)
	@Label("Travel Sub Account Number")
    @NotNull
	private String subAccount;

	@Column(name="SUB_ACCT_NAME",length=40)
    @NotNull
	private String subAccountName;

    public TravelAccount getAccount() {
        return account;
    }

    public void setAccount(TravelAccount account) {
        this.account = account;
    }

    public String getSubAccount() {
        return this.subAccount;
    }

    public void setSubAccount(String subAccount) {
        this.subAccount = subAccount;
    }

    public String getSubAccountName() {
        return this.subAccountName;
    }

    public void setSubAccountName(String subAccountName) {
        this.subAccountName = subAccountName;
    }

    public String getTravelAccountNumber() {
        return travelAccountNumber;
    }

    public void setTravelAccountNumber(String travelAccountNumber) {
        this.travelAccountNumber = travelAccountNumber;<commit_msg>KULRICE-12052 - AFT Failure LabsLookupAutomaticPassingOfKeysAft  - clean up class and revert previous change<commit_after>/**
 * Copyright 2005-2014 The Kuali Foundation
 *
 * Licensed under the Educational Community 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
 *
 * http://www.opensource.org/licenses/ecl2.php
 *
 * 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.kuali.rice.krad.demo.travel.dataobject;

import org.kuali.rice.krad.bo.DataObjectBase;
import org.kuali.rice.krad.data.provider.annotation.ForceUppercase;
import org.kuali.rice.krad.data.provider.annotation.Label;
import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViewType;
import org.kuali.rice.krad.data.provider.annotation.UifAutoCreateViews;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name="TRV_SUB_ACCT")
@UifAutoCreateViews({UifAutoCreateViewType.INQUIRY,UifAutoCreateViewType.LOOKUP})
public class TravelSubAccount extends DataObjectBase {

	private static final long serialVersionUID = 5768156680246084251L;

    @Id
    @Column(name = "ACCT_NUM",length = 10)
    @Label("Travel Account Number")
    @NotNull
    private String travelAccountNumber;

	@Id
    @ForceUppercase
	@Column(name="SUB_ACCT",length=10)
	@Label("Travel Sub Account Number")
    @NotNull
	private String subAccount;

	@Column(name="SUB_ACCT_NAME",length=40)
    @NotNull
	private String subAccountName;

    @ManyToOne
    @JoinColumn(name = "ACCT_NUM" ,insertable=false, updatable=false)
    TravelAccount account;

    public String getTravelAccountNumber() {
        return this.travelAccountNumber;
    }

    public void setTravelAccountNumber(String travelAccountNumber) {
        this.travelAccountNumber = travelAccountNumber;
    }

    public String getSubAccount() {
        return this.subAccount;
    }

    public void setSubAccount(String subAccount) {
        this.subAccount = subAccount;
    }

    public String getSubAccountName() {
        return this.subAccountName;
    }

    public void setSubAccountName(String subAccountName) {
        this.subAccountName = subAccountName;
    }

    public TravelAccount getAccount() {
        return this.account;
    }

    public void setAccount(TravelAccount account) {
        this.account = account;
{'fraction_non_alphanumeric': 0.08570925730376627, 'fraction_numerical': 0.013551566349876804, 'mean_word_length': 4.286511627906977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '686040', 'n_tokens_mistral': 1712, 'n_tokens_neox': 1627, 'n_words': 421}