Revision: 721
http://treebase.svn.sourceforge.net/treebase/?rev=721&view=rev
Author: rvos
Date: 2010-06-15 17:56:12 +0000 (Tue, 15 Jun 2010)
Log Message:
-----------
Syntax fix: HQL constructs the query based on the name of the object property, not of that of the underlying table column.
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDAO.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDAO.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDAO.java 2010-06-15 17:24:23 UTC (rev 720)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/dao/matrix/MatrixDAO.java 2010-06-15 17:56:12 UTC (rev 721)
@@ -623,7 +623,7 @@
*/
public Matrix findByTB1StudyID(String pTB1MatrixID) {
Criteria c = getSession().createCriteria(Matrix.class);
- c.add(Expression.eq("TB_MatrixID", pTB1MatrixID));
+ c.add(Expression.eq("TB1MatrixID", pTB1MatrixID));
return (Matrix) c.uniqueResult();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|