Changeset 2604
- Timestamp:
- Aug 29, 2006, 3:59:37 PM (17 years ago)
- Location:
- branches/dominic_annotations/src/core/net/sf/basedb/core/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dominic_annotations/src/core/net/sf/basedb/core/data/AnnotationTypeCategoryData.java
r2595 r2604 47 47 This is the inverse end. 48 48 @see AnnotationTypeData#getCategories() 49 @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true" 49 @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true" inverse="true" 50 50 @hibernate.collection-key column="`category_id`" 51 51 @hibernate.collection-many-to-many column="`annotationtype_id`" class="net.sf.basedb.core.data.AnnotationTypeData" 52 52 */ 53 publicSet<AnnotationTypeData> getAnnotationTypes()53 Set<AnnotationTypeData> getAnnotationTypes() 54 54 { 55 55 return annotationTypes; -
branches/dominic_annotations/src/core/net/sf/basedb/core/data/AnnotationTypeData.java
r2602 r2604 206 206 207 207 208 private Set<AnnotationTypeCategoryData> categor y;208 private Set<AnnotationTypeCategoryData> categories; 209 209 /** 210 210 Many to many from AnnotationTypes to AnnotationTypeCategory. 211 This is the inverse end212 211 @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true" 213 212 @hibernate.collection-key column="`annotationtype_id`" … … 215 214 */ 216 215 217 public Set<AnnotationTypeCategoryData> getCategor y() {218 if ( categor y==null)216 public Set<AnnotationTypeCategoryData> getCategories() { 217 if ( categories==null) 219 218 { 220 categor y= new HashSet<AnnotationTypeCategoryData>();219 categories= new HashSet<AnnotationTypeCategoryData>(); 221 220 } 222 return categor y;223 } 224 225 void setCategory(Set<AnnotationTypeCategoryData> categor y) {226 this.categor y = category;221 return categories; 222 } 223 224 void setCategory(Set<AnnotationTypeCategoryData> categories) { 225 this.categories = categories; 227 226 } 228 227
Note: See TracChangeset
for help on using the changeset viewer.