Changeset 1421


Ignore:
Timestamp:
Oct 28, 2011, 12:33:45 PM (10 years ago)
Author:
Martin Svensson
Message:

References #330 The regexp which finds unpartitioned tubes, has now been corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/SpecimenTube.java

    r1420 r1421  
    105105   
    106106    ItemQuery<Sample> tubeQuery = Sample.getQuery();
    107     tubeQuery.restrict(Restrictions.rlike(Hql.property("name"), Expressions.parameter("name", "^.\\.[0-9]+$", Type.STRING)));
     107    tubeQuery.restrict(Restrictions.rlike(Hql.property("name"), Expressions.parameter("name", "^.+\\.[0-9]+$", Type.STRING)));
    108108    tubeQuery.order(Orders.desc(Hql.property("name")));
    109109    tubeQuery.include(Include.ALL);
Note: See TracChangeset for help on using the changeset viewer.