001 /** 002 * Copyright 2005-2013 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 */ 016 package org.kuali.rice.krad.test.document.bo; 017 018 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 019 020 import javax.persistence.*; 021 022 @Entity 023 @Table(name="TRV_ACCT") 024 public class Account extends PersistableBusinessObjectBase { 025 @Id 026 @Column(name="acct_num") 027 private String number; 028 @Column(name="acct_name") 029 private String name; 030 @Column(name="acct_fo_id") 031 private Long amId; 032 033 @ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH}) 034 @JoinColumn(name="acct_fo_id",insertable=false,updatable=false) 035 private AccountManager accountManager; 036 037 public String getName() { 038 return name; 039 } 040 041 public void setName(String name) { 042 this.name = name; 043 } 044 045 public String getNumber() { 046 return number; 047 } 048 049 public void setNumber(String number) { 050 this.number = number; 051 } 052 053 public Long getAmId() { 054 return this.amId; 055 } 056 057 public void setAmId(Long id) { 058 this.amId = id; 059 } 060 061 public AccountManager getAccountManager() { 062 return this.accountManager; 063 } 064 065 public void setAccountManager(AccountManager accountManager) { 066 this.accountManager = accountManager; 067 } 068 }