- Timestamp:
- 05/13/08 08:13:12 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/trunk/src/api/org/openmrs/api/db/hibernate/HibernateObsDAO.java
r4158 r4190 356 356 /** 357 357 * @see org.openmrs.api.db.ObsDAO#findObsByGroupId(java.lang.Integer) 358 * @deprecated -- should use obs.getGroupMembers 358 359 */ 359 360 @SuppressWarnings("unchecked") … … 361 362 Criteria criteria = sessionFactory.getCurrentSession().createCriteria( 362 363 Obs.class); 363 criteria.add(Restrictions.eq("obsGroupId", obsGroupId)); 364 criteria.createAlias("obsGroup", "og"); 365 criteria.add(Restrictions.eq("og.obsId", obsGroupId)); 364 366 return criteria.list(); 365 367 }