01: package org.columba.core.association;
02:
03: import javax.persistence.Entity;
04: import javax.persistence.GeneratedValue;
05: import javax.persistence.Id;
06:
07: import org.columba.core.association.api.IAssociation;
08:
09: @Entity
10: public class Association implements IAssociation {
11:
12: @Id
13: @GeneratedValue
14: Long id;
15: String itemId;
16: String serviceId;
17: String metaDataId;
18:
19: // needed for hibernate!
20: public Association() {
21: super ();
22: }
23:
24: public Association(String iId, String sId, String mdId) {
25: itemId = iId;
26: serviceId = sId;
27: metaDataId = mdId;
28: }
29:
30: public String getMetaDataId() {
31: return metaDataId;
32: }
33:
34: public String getServiceId() {
35: return serviceId;
36: }
37:
38: public String getItemId() {
39: return itemId;
40: }
41:
42: }
|