1 4 package com.nightlabs.ipanema.accounting; 5 6 import java.io.Serializable ; 7 8 9 19 public class CustomerGroup implements Serializable 20 { 21 25 private String organisationID; 26 27 31 private String customerGroupID; 32 33 36 private transient String primaryKey = null; 37 38 53 protected CustomerGroup() { } 54 public CustomerGroup(String organisationID, String customerGroupID) 55 { 56 this.organisationID = organisationID; 57 this.customerGroupID = customerGroupID; 58 } 59 60 63 public String getOrganisationID() 64 { 65 return organisationID; 66 } 67 70 public String getCustomerGroupID() 71 { 72 return customerGroupID; 73 } 74 75 public static String getPrimaryKey(String organisationID, String customerGroupID) 76 { 77 return organisationID + '/' + customerGroupID; 78 } 79 public String getPrimaryKey() 80 { 81 if (primaryKey == null) 82 primaryKey = organisationID + '/' + customerGroupID; 83 return primaryKey; 84 } 85 } 86 | Popular Tags |