Changeset 7858


Ignore:
Timestamp:
Oct 20, 2020, 8:29:43 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2224: Files should be annotatable

Annotation importer should use PATH instead of NAME when referencing files.

File:
1 edited

Legend:

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

    r7849 r7858  
    7979import net.sf.basedb.core.signal.ThreadSignalHandler;
    8080import net.sf.basedb.plugins.batchimport.AnnotationIdMethod;
     81import net.sf.basedb.plugins.batchimport.FileImporter.PathIdMethod;
    8182import net.sf.basedb.plugins.batchimport.IdMethod;
    8283import net.sf.basedb.plugins.batchimport.InternalIdMethod;
     
    12831284  {
    12841285    List<IdMethod> methods = new ArrayList<>();
    1285     methods.add(PropertyIdMethod.NAME);
     1286    methods.add(item == Item.FILE ? PathIdMethod.ROOT : PropertyIdMethod.NAME);
    12861287    methods.add(InternalIdMethod.INTERNAL_ID);
    12871288    if (item == null || hasExternalId(item)) methods.add(PropertyIdMethod.EXTERNAL_ID);
Note: See TracChangeset for help on using the changeset viewer.