1 /* 2 * Copyright 2005-2008 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.kew.workgroup; 17 18 import java.io.Serializable; 19 20 import javax.persistence.Column; 21 22 /** 23 * This Compound Primary Class has been generated by the rice ojb2jpa Groovy script. Please 24 * note that there are no setter methods, only getters. This is done purposefully as cpk classes 25 * can not change after they have been created. Also note they require a public no-arg constructor. 26 * TODO: Implement the equals() and hashCode() methods. 27 */ 28 public class BaseWorkgroupId implements Serializable { 29 30 @Column(name="GRP_ID") 31 protected Long workgroupId; 32 @Column(name="WRKGRP_VER_NBR") 33 protected Integer versionNumber; 34 35 public BaseWorkgroupId() {} 36 37 public Long getWorkgroupId() { return workgroupId; } 38 public Integer getVersionNumber() { return versionNumber; } 39 40 public boolean equals(Object o) { 41 if (o == this) return true; 42 if (!(o instanceof BaseWorkgroupId)) return false; 43 if (o == null) return false; 44 BaseWorkgroupId pk = (BaseWorkgroupId) o; 45 // TODO: Finish implementing this method. Compare o to pk and return true or false. 46 throw new UnsupportedOperationException("Please implement me!"); 47 } 48 49 public int hashCode() { 50 // TODO: Implement this method 51 throw new UnsupportedOperationException("Please implement me!"); 52 } 53 54 } 55