Changeset 2604


Ignore:
Timestamp:
Aug 29, 2006, 3:59:37 PM (17 years ago)
Author:
dominic
Message:

Removed category duplication

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  
    4747    This is the inverse end.
    4848    @see AnnotationTypeData#getCategories()
    49     @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true"
     49    @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true" inverse="true"
    5050    @hibernate.collection-key column="`category_id`"
    5151    @hibernate.collection-many-to-many column="`annotationtype_id`" class="net.sf.basedb.core.data.AnnotationTypeData"
    5252  */
    53   public Set<AnnotationTypeData> getAnnotationTypes()
     53  Set<AnnotationTypeData> getAnnotationTypes()
    5454  {
    5555    return annotationTypes;
  • branches/dominic_annotations/src/core/net/sf/basedb/core/data/AnnotationTypeData.java

    r2602 r2604  
    206206 
    207207 
    208   private Set<AnnotationTypeCategoryData> category;
     208  private Set<AnnotationTypeCategoryData> categories;
    209209  /**
    210210    Many to many from  AnnotationTypes to AnnotationTypeCategory.
    211     This is the inverse end
    212211    @hibernate.set table="`CategorisedAnnotationTypes`" lazy="true"
    213212    @hibernate.collection-key column="`annotationtype_id`"
     
    215214   */
    216215 
    217   public Set<AnnotationTypeCategoryData> getCategory() {
    218     if ( category==null)
     216  public Set<AnnotationTypeCategoryData> getCategories() {
     217    if ( categories==null)
    219218    {
    220       category= new HashSet<AnnotationTypeCategoryData>();
     219      categories= new HashSet<AnnotationTypeCategoryData>();
    221220    }
    222     return category;
    223   }
    224  
    225   void setCategory(Set<AnnotationTypeCategoryData> category) {
    226     this.category = category;
     221    return categories;
     222  }
     223 
     224  void setCategory(Set<AnnotationTypeCategoryData> categories) {
     225    this.categories = categories;
    227226  }
    228227     
Note: See TracChangeset for help on using the changeset viewer.