001 /**
002 * Copyright 2010 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.student.lum.lu.entity;
017
018 import java.util.ArrayList;
019 import java.util.List;
020
021 import javax.persistence.CascadeType;
022 import javax.persistence.Column;
023 import javax.persistence.Entity;
024 import javax.persistence.OneToMany;
025 import javax.persistence.Table;
026
027 import org.kuali.student.common.entity.BaseEntity;
028
029 @Entity
030 @Table(name = "KSLU_MEMSHIP")
031 public class MembershipQuery extends BaseEntity{
032
033 @Column(name = "SEARCH_TYPE_KEY")
034 private String searchTypeKey;
035
036 @OneToMany(cascade = CascadeType.ALL)
037 private List<SearchParameter> searchParameters = new ArrayList<SearchParameter>();
038
039 public String getSearchTypeKey() {
040 return searchTypeKey;
041 }
042
043 public void setSearchTypeKey(String searchTypeKey) {
044 this.searchTypeKey = searchTypeKey;
045 }
046
047 public List<SearchParameter> getSearchParameters() {
048 return searchParameters;
049 }
050
051 public void setSearchParameters(List<SearchParameter> searchParameters) {
052 this.searchParameters = searchParameters;
053 }
054
055 @Override
056 public String toString() {
057 return "MembershipQuery[searchTypeKey=" + searchTypeKey + "]";
058 }
059
060 }