*/
public class ReportDefinitionServiceDefaultImpl extends AbstractService implements ReportDefinitionService {
private ConnectionManager connectionManager;
public ReportDefinition getReportDefinition(Long id) {
ReportDefinition rd = (ReportDefinition) loadById(ReportDefinition.class, id);
//TODO: how to fix these code?
if(rd == null) return null;
rd.getDatabase().setConnectionManager(connectionManager);
return rd;
}