test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private MyEntity instance;
test_class.type: MyEntity
test_class.var_name: instance
test_class.declarator: repository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EntityRepository repository;
test_class.type: EntityRepository
test_class.var_name: repository
test_class.file: dddlib-domain/src/test/java/org/dayatang/domain/AbstractEntityTest.java
test_class.identifier: AbstractEntityTest
test_case.body: @Test
      public void testFindByProperties() {
          List list = Collections.singletonList(instance);
          Map props = Collections.singletonMap("name", "abc");
          when(repository.findByProperties(MyEntity.class, NamedParameters.create(props))).thenReturn(list);
          assertEquals(list, AbstractEntity.findByProperties(MyEntity.class, props));
      }
test_case.class_method_signature: AbstractEntityTest.testFindByProperties()
test_case.full_signature: @Test public void testFindByProperties()
test_case.identifier: testFindByProperties
test_case.invocations: singletonList singletonMap thenReturn when findByProperties create assertEquals findByProperties
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindByProperties()
focal_class.declarator: serialVersionUID = 8882145540383345037L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 8882145540383345037L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: id
focal_class.modifier: @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      @Column(name = "id")
      private
focal_class.original_string: @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      @Column(name = "id")
      private Long id;
focal_class.type: Long
focal_class.var_name: id
focal_class.declarator: version
focal_class.modifier: @Version
      @Column(name = "version")
      private
focal_class.original_string: @Version
      @Column(name = "version")
      private int version;
focal_class.type: int
focal_class.var_name: version
focal_class.file: dddlib-domain/src/main/java/org/dayatang/domain/AbstractEntity.java
focal_class.identifier: AbstractEntity
focal_class.class_method_signature: AbstractEntity.getId()
focal_class.full_signature: @Override public Long getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Long
focal_class.signature: Long getId()
focal_class.class_method_signature: AbstractEntity.setId(Long id)
focal_class.full_signature: public void setId(Long id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (Long id)
focal_class.return: void
focal_class.signature: void setId(Long id)
focal_class.class_method_signature: AbstractEntity.getVersion()
focal_class.full_signature: public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: AbstractEntity.setVersion(int version)
focal_class.full_signature: public void setVersion(int version)
focal_class.identifier: setVersion
focal_class.modifiers: public
focal_class.parameters: (int version)
focal_class.return: void
focal_class.signature: void setVersion(int version)
focal_class.class_method_signature: AbstractEntity.save()
focal_class.full_signature: public void save()
focal_class.identifier: save
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void save()
focal_class.class_method_signature: AbstractEntity.remove()
focal_class.full_signature: public void remove()
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void remove()
focal_class.class_method_signature: AbstractEntity.get(Class<T> clazz, Serializable id)
focal_class.full_signature: public static T get(Class<T> clazz, Serializable id)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz, Serializable id)
focal_class.return: T
focal_class.signature: T get(Class<T> clazz, Serializable id)
focal_class.class_method_signature: AbstractEntity.getUnmodified(Class<T> clazz, T entity)
focal_class.full_signature: public static T getUnmodified(Class<T> clazz, T entity)
focal_class.identifier: getUnmodified
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz, T entity)
focal_class.return: T
focal_class.signature: T getUnmodified(Class<T> clazz, T entity)
focal_class.class_method_signature: AbstractEntity.load(Class<T> clazz, Serializable id)
focal_class.full_signature: public static T load(Class<T> clazz, Serializable id)
focal_class.identifier: load
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz, Serializable id)
focal_class.return: T
focal_class.signature: T load(Class<T> clazz, Serializable id)
focal_class.class_method_signature: AbstractEntity.findAll(Class<T> clazz)
focal_class.full_signature: public static List<T> findAll(Class<T> clazz)
focal_class.identifier: findAll
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz)
focal_class.return: List<T>
focal_class.signature: List<T> findAll(Class<T> clazz)
focal_class.class_method_signature: AbstractEntity.findByProperty(Class<T> clazz, String propName, Object value)
focal_class.full_signature: public static List<T> findByProperty(Class<T> clazz, String propName, Object value)
focal_class.identifier: findByProperty
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz, String propName, Object value)
focal_class.return: List<T>
focal_class.signature: List<T> findByProperty(Class<T> clazz, String propName, Object value)
focal_class.class_method_signature: AbstractEntity.findByProperties(Class<T> clazz, Map<String, Object> propValues)
focal_class.full_signature: public static List<T> findByProperties(Class<T> clazz, Map<String, Object> propValues)
focal_class.identifier: findByProperties
focal_class.modifiers: public static
focal_class.parameters: (Class<T> clazz, Map<String, Object> propValues)
focal_class.return: List<T>
focal_class.signature: List<T> findByProperties(Class<T> clazz, Map<String, Object> propValues)
focal_class.superclass: extends BaseEntity
focal_method.body: public static <T extends Entity> List<T> findByProperties(Class<T> clazz, Map<String, Object> propValues) {
          return getRepository().findByProperties(clazz, NamedParameters.create(propValues));
      }
focal_method.class_method_signature: AbstractEntity.findByProperties(Class<T> clazz, Map<String, Object> propValues)
focal_method.full_signature: public static List<T> findByProperties(Class<T> clazz, Map<String, Object> propValues)
focal_method.identifier: findByProperties
focal_method.invocations: findByProperties getRepository create
focal_method.modifiers: public static
focal_method.parameters: (Class<T> clazz, Map<String, Object> propValues)
focal_method.return: List<T>
focal_method.signature: List<T> findByProperties(Class<T> clazz, Map<String, Object> propValues)