@Test public void testReadSucceeds() throws Exception { SystemDefinition systemA0 = dao.getSystemDefinition("00000000", "00000000"); assertNotNull(systemA0); assertTrue(systemA0.isValid()); assertEquals("00000000", systemA0.getId()); assertEquals("System A0", systemA0.getName()); assertEquals(true, systemA0.isStandard()); assertEquals(1, systemA0.getServices().size()); assertEquals("00000000", systemA0.getOrganization().getId()); ServiceDefinition serviceA0_0 = systemA0.getServiceDefinition("00000000"); assertNotNull(serviceA0_0); assertTrue(serviceA0_0.isValid()); assertEquals("00000000", serviceA0_0.getId()); assertEquals("Service A0-0", serviceA0_0.getName()); assertEquals("M1", serviceA0_0.getRequestMessageTypeId()); assertEquals("M2", serviceA0_0.getResponseMessageTypeId()); assertNull(serviceA0_0.getServiceProviderBeanId()); assertEquals(systemA0, serviceA0_0.getSystem()); }
public SystemDefinition getSystemDefinition(String key) { LOGGER.debug("get SystemDefinition(key = \"{}\")", key); SystemDefinition systemDefinition = (SystemDefinition) getHibernateTemplate().get(SystemDefinition.class, key); LOGGER.debug("get SystemDefinition(key = \"{}\") = {}", key, systemDefinition); return systemDefinition; }
HibernateSystemDefinitionDao extends HibernateDaoSupport implements SystemDefinitionDao { public SystemDefinition getSystemDefinition(String key) { LOGGER.debug("get SystemDefinition(key = \"{}\")", key); SystemDefinition systemDefinition = (SystemDefinition) getHibernateTemplate().get(SystemDefinition.class, key); LOGGER.debug("get SystemDefinition(key = \"{}\") = {}", key, systemDefinition); return systemDefinition; } }
HibernateSystemDefinitionDao extends HibernateDaoSupport implements SystemDefinitionDao { public SystemDefinition getSystemDefinition(String key) { LOGGER.debug("get SystemDefinition(key = \"{}\")", key); SystemDefinition systemDefinition = (SystemDefinition) getHibernateTemplate().get(SystemDefinition.class, key); LOGGER.debug("get SystemDefinition(key = \"{}\") = {}", key, systemDefinition); return systemDefinition; }  }
HibernateSystemDefinitionDao extends HibernateDaoSupport implements SystemDefinitionDao { public SystemDefinition getSystemDefinition(String key) { LOGGER.debug("get SystemDefinition(key = \"{}\")", key); SystemDefinition systemDefinition = (SystemDefinition) getHibernateTemplate().get(SystemDefinition.class, key); LOGGER.debug("get SystemDefinition(key = \"{}\") = {}", key, systemDefinition); return systemDefinition; }  SystemDefinition getSystemDefinition(String key); @SuppressWarnings("unchecked") SystemDefinition getSystemDefinition(String organizationId, String systemId); }
HibernateSystemDefinitionDao extends HibernateDaoSupport implements SystemDefinitionDao { public SystemDefinition getSystemDefinition(String key) { LOGGER.debug("get SystemDefinition(key = \"{}\")", key); SystemDefinition systemDefinition = (SystemDefinition) getHibernateTemplate().get(SystemDefinition.class, key); LOGGER.debug("get SystemDefinition(key = \"{}\") = {}", key, systemDefinition); return systemDefinition; }  SystemDefinition getSystemDefinition(String key); @SuppressWarnings("unchecked") SystemDefinition getSystemDefinition(String organizationId, String systemId);  }