Changeset 4880


Ignore:
Timestamp:
Apr 3, 2009, 11:39:56 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1289: Biomaterial classes should implement the Registered interface

Location:
trunk/src/core/net/sf/basedb/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Hybridization.java

    r4517 r4880  
    2828import net.sf.basedb.core.query.Hql;
    2929
     30import java.util.Date;
    3031import java.util.Set;
    3132import java.util.HashSet;
     
    4142public class Hybridization
    4243  extends AnnotatedItem<HybridizationData>
     44  implements Registered
    4345{
    4446  /**
     
    135137  }
    136138  // -------------------------------------------
    137 
     139  /*
     140    From the Registered interface
     141    -------------------------------------------
     142  */
     143  @Override
     144  public Date getEntryDate()
     145  {
     146    return getCreationEvent().getEntryDate();
     147  }
     148  // -------------------------------------------
    138149  /*
    139150    From the BasicItem class
  • trunk/src/core/net/sf/basedb/core/MeasuredBioMaterial.java

    r4677 r4880  
    2424package net.sf.basedb.core;
    2525
     26import java.util.Date;
    2627import java.util.Set;
    2728
     
    5152public abstract class MeasuredBioMaterial<D extends MeasuredBioMaterialData>
    5253  extends BioMaterial<D>
     54  implements Registered
    5355{
    5456
     
    141143  {
    142144    return getCreationEvent().getProtocol();
     145  }
     146  // -------------------------------------------
     147  /*
     148    From the Registered interface
     149    -------------------------------------------
     150  */
     151  @Override
     152  public Date getEntryDate()
     153  {
     154    return getCreationEvent().getEntryDate();
    143155  }
    144156  // -------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.