Changeset 5049
- Timestamp:
- Aug 17, 2009, 1:17:51 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/Well.java
r4889 r5049 330 330 331 331 /** 332 Get the reporter in this well. 333 The initialization of the reporter can be forced. 334 @param forceInitialization TRUE if the initialization of 335 the reporter should be forced, FALSE otherwise. 336 @return A <code>ReporterData</code> object or null if no 337 reporter has been specified. 338 @since 2.13 339 */ 340 public ReporterData getReporter(boolean forceInitialization) 341 { 342 if (!getSessionControl().hasPermission(Permission.READ, Item.REPORTER)) 343 { 344 throw new PermissionDeniedException(Permission.READ, "Reporter"); 345 } 346 ReporterData reporter = getData().getReporter(); 347 if (forceInitialization) org.hibernate.Hibernate.initialize(reporter); 348 HibernateUtil.evictData(getDbControl().getHibernateSession(), reporter); 349 return reporter; 350 } 351 352 /** 332 353 Set the reporter of this well. 333 354 @param reporter The new reporter or null if the reporter is unknown … … 352 373 getData().setReporter(reporter); 353 374 } 354 355 375 } -
trunk/www/lims/plates/wells/list_wells.jsp
r4889 r5049 117 117 { 118 118 final ItemQuery<Well> query = Base.getConfiguredQuery(dc, cc, true, plate.getWells(), mode); 119 query.join(Hql.leftJoin(null, "reporter", "rpt", null, false));119 query.join(Hql.leftJoin(null, "reporter", "rpt", null, true)); 120 120 if (!"row".equals(cc.getSortProperty())) query.order(Orders.asc(Hql.property("row"))); 121 121 if (!"column".equals(cc.getSortProperty())) query.order(Orders.asc(Hql.property("column")));
Note: See TracChangeset
for help on using the changeset viewer.