test_class.file: model/src/test/java/com/abiquo/server/core/infrastructure/storage/InitiatorMappingDAOTest.java
test_class.identifier: InitiatorMappingDAOTest
test_class.superclass: extends
      DefaultDAOTestBase<InitiatorMappingDAO, InitiatorMapping>
test_case.body: @Test
      public void testfindByVolumeAndInitiator()
      {
          InitiatorMapping m = eg().createUniqueInstance();
  
          List<Object> entitiesToPersist = new ArrayList<Object>();
          eg().addAuxiliaryEntitiesToPersist(m, entitiesToPersist);
          persistAll(ds(), entitiesToPersist, m);
          InitiatorMappingDAO dao = createDaoForRollbackTransaction();
          String initm = m.getInitiatorIqn();
          Integer idVm = m.getVolumeManagement().getId();
  
          InitiatorMapping im1 = dao.findByVolumeAndInitiator(idVm, initm);
          assertNotNull(im1);
          eg().assertAllPropertiesEqual(m, im1);
      }
test_case.class_method_signature: InitiatorMappingDAOTest.testfindByVolumeAndInitiator()
test_case.full_signature: @Test public void testfindByVolumeAndInitiator()
test_case.identifier: testfindByVolumeAndInitiator
test_case.invocations: createUniqueInstance eg addAuxiliaryEntitiesToPersist eg persistAll ds createDaoForRollbackTransaction getInitiatorIqn getId getVolumeManagement findByVolumeAndInitiator assertNotNull assertAllPropertiesEqual eg
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testfindByVolumeAndInitiator()
focal_class.file: model/src/main/java/com/abiquo/server/core/infrastructure/storage/InitiatorMappingDAO.java
focal_class.identifier: InitiatorMappingDAO
focal_class.class_method_signature: InitiatorMappingDAO.InitiatorMappingDAO()
focal_class.full_signature: public  InitiatorMappingDAO()
focal_class.identifier: InitiatorMappingDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InitiatorMappingDAO()
focal_class.class_method_signature: InitiatorMappingDAO.InitiatorMappingDAO(final EntityManager entityManager)
focal_class.full_signature: public  InitiatorMappingDAO(final EntityManager entityManager)
focal_class.identifier: InitiatorMappingDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  InitiatorMappingDAO(final EntityManager entityManager)
focal_class.class_method_signature: InitiatorMappingDAO.findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
focal_class.full_signature: public InitiatorMapping findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
focal_class.identifier: findByVolumeAndInitiator
focal_class.modifiers: public
focal_class.parameters: (final Integer idVolumeManagement,
          final String initiatorIqn)
focal_class.return: InitiatorMapping
focal_class.signature: InitiatorMapping findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
focal_class.class_method_signature: InitiatorMappingDAO.findByVolumeId(final Integer idVolume)
focal_class.full_signature: public List<InitiatorMapping> findByVolumeId(final Integer idVolume)
focal_class.identifier: findByVolumeId
focal_class.modifiers: public
focal_class.parameters: (final Integer idVolume)
focal_class.return: List<InitiatorMapping>
focal_class.signature: List<InitiatorMapping> findByVolumeId(final Integer idVolume)
focal_class.superclass: extends DefaultDAOBase<Integer, InitiatorMapping>
focal_method.body: public InitiatorMapping findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
      {
          Criteria criteria =
              createCriteria(Restrictions.eq("volume.id", idVolumeManagement)).add(
                  Restrictions.eq("initiatorIqn", initiatorIqn));
          Object obj = criteria.uniqueResult();
          return (InitiatorMapping) obj;
      }
focal_method.class_method_signature: InitiatorMappingDAO.findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
focal_method.full_signature: public InitiatorMapping findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)
focal_method.identifier: findByVolumeAndInitiator
focal_method.invocations: add createCriteria eq eq uniqueResult
focal_method.modifiers: public
focal_method.parameters: (final Integer idVolumeManagement,
          final String initiatorIqn)
focal_method.return: InitiatorMapping
focal_method.signature: InitiatorMapping findByVolumeAndInitiator(final Integer idVolumeManagement,
          final String initiatorIqn)