PropertiesDAO { public Properties get(PropertiesId propertiesId) { Session session = sessionFactory.openSession(); session.beginTransaction(); Properties properties = (Properties) session.get(Properties.class, propertiesId); session.getTransaction().commit(); session.close(); return properties; }  List<Integer> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); Properties get(PropertiesId propertiesId); PropertiesId insert(Properties properties); void update(Properties properties); void delete(PropertiesId propertiesId); List<Properties> getPropertiesForConfig(int processId, String configGroup); List<Properties> getPropertiesForBroadcast(int processId); void deleteByProcessId(com.wipro.ats.bdre.md.dao.jpa.Process process); List<Properties> getByProcessId(com.wipro.ats.bdre.md.dao.jpa.Process process); List<Properties> getByProcessIdCopy(com.wipro.ats.bdre.md.dao.jpa.Process process, Integer pageNum, Integer numResults); Integer totalRecordCount(com.wipro.ats.bdre.md.dao.jpa.Process process); void updateArrangePositions(Integer parentPid, List<PositionsInfo> positionsInfoList); String getPropertiesValueForConfigAndKey(int processId, String configGroup, String key);  }
@Ignore @Test public void testGet() throws Exception { PropertiesId propertiesId = new PropertiesId(); propertiesId.setPropKey("CP_ACCOUNT_TABLE"); propertiesId.setProcessId(10805); LOGGER.info("Description of propertiesId(10805) is:" + propertiesDAO.get(propertiesId).getDescription()); }