test_class.file: dddlib-examples/organisation-project/organisation-domain/src/test/java/org/dddlib/organisation/domain/AccountabilityTest.java
test_class.identifier: AccountabilityTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @SuppressWarnings("rawtypes")
      @Test
      public final void testFindAccountabilities() {
          OrganisationUtils organisationUtils = new OrganisationUtils();
          Date date = DateUtils.date(2012, 1, 3);
          Company company = organisationUtils.createCompany("总公司", date);
          Department financial = organisationUtils.createDepartment("财务部", company, date);
          Person person = organisationUtils.createPerson("Martin", "Fowler");
          Employee employee = organisationUtils.createEmployee(person, date);
          Employment employment = new Employment(company, employee, date);
          employment.save();
          List<Accountability> results = Accountability.findAccountabilities(Accountability.class, date);
          // 断言找到所有的子类实例。
          OrgLineMgmt lineMgmt = OrgLineMgmt.getByResponsible(financial, date);
          assertTrue(results.contains(lineMgmt));
          assertTrue(results.contains(employment));
      }
test_case.class_method_signature: AccountabilityTest.testFindAccountabilities()
test_case.full_signature: @SuppressWarnings("rawtypes") @Test public final void testFindAccountabilities()
test_case.identifier: testFindAccountabilities
test_case.invocations: date createCompany createDepartment createPerson createEmployee save findAccountabilities getByResponsible assertTrue contains assertTrue contains
test_case.modifiers: @SuppressWarnings("rawtypes") @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindAccountabilities()
focal_class.declarator: serialVersionUID = 3456398163374995470L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 3456398163374995470L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: commissioner
focal_class.modifier: @ManyToOne(targetEntity = Party.class, cascade = CascadeType.ALL)
      @JoinColumn(name = "commissioner_id")
      private
focal_class.original_string: @ManyToOne(targetEntity = Party.class, cascade = CascadeType.ALL)
      @JoinColumn(name = "commissioner_id")
      private C commissioner;
focal_class.type: C
focal_class.var_name: commissioner
focal_class.declarator: responsible
focal_class.modifier: @ManyToOne(targetEntity = Party.class, cascade = CascadeType.ALL)
      @JoinColumn(name = "responsible_id")
      private
focal_class.original_string: @ManyToOne(targetEntity = Party.class, cascade = CascadeType.ALL)
      @JoinColumn(name = "responsible_id")
      private R responsible;
focal_class.type: R
focal_class.var_name: responsible
focal_class.declarator: fromDate
focal_class.modifier: @Temporal(TemporalType.DATE)
      @Column(name = "from_date")
      private
focal_class.original_string: @Temporal(TemporalType.DATE)
      @Column(name = "from_date")
      private Date fromDate;
focal_class.type: Date
focal_class.var_name: fromDate
focal_class.declarator: toDate
focal_class.modifier: @Temporal(TemporalType.DATE)
      @Column(name = "to_date")
      private
focal_class.original_string: @Temporal(TemporalType.DATE)
      @Column(name = "to_date")
      private Date toDate;
focal_class.type: Date
focal_class.var_name: toDate
focal_class.file: dddlib-examples/organisation-project/organisation-domain/src/main/java/org/dddlib/organisation/domain/Accountability.java
focal_class.identifier: Accountability
focal_class.class_method_signature: Accountability.Accountability()
focal_class.full_signature: protected  Accountability()
focal_class.identifier: Accountability
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  Accountability()
focal_class.class_method_signature: Accountability.Accountability(C commissioner, R responsible, Date fromDate)
focal_class.full_signature: public  Accountability(C commissioner, R responsible, Date fromDate)
focal_class.identifier: Accountability
focal_class.modifiers: public
focal_class.parameters: (C commissioner, R responsible, Date fromDate)
focal_class.signature:  Accountability(C commissioner, R responsible, Date fromDate)
focal_class.class_method_signature: Accountability.getCommissioner()
focal_class.full_signature: public C getCommissioner()
focal_class.identifier: getCommissioner
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: C
focal_class.signature: C getCommissioner()
focal_class.class_method_signature: Accountability.setCommissioner(C commissioner)
focal_class.full_signature: public void setCommissioner(C commissioner)
focal_class.identifier: setCommissioner
focal_class.modifiers: public
focal_class.parameters: (C commissioner)
focal_class.return: void
focal_class.signature: void setCommissioner(C commissioner)
focal_class.class_method_signature: Accountability.getResponsible()
focal_class.full_signature: public R getResponsible()
focal_class.identifier: getResponsible
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: R
focal_class.signature: R getResponsible()
focal_class.class_method_signature: Accountability.setResponsible(R responsible)
focal_class.full_signature: public void setResponsible(R responsible)
focal_class.identifier: setResponsible
focal_class.modifiers: public
focal_class.parameters: (R responsible)
focal_class.return: void
focal_class.signature: void setResponsible(R responsible)
focal_class.class_method_signature: Accountability.getFromDate()
focal_class.full_signature: public Date getFromDate()
focal_class.identifier: getFromDate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getFromDate()
focal_class.class_method_signature: Accountability.setFromDate(Date fromDate)
focal_class.full_signature:  void setFromDate(Date fromDate)
focal_class.identifier: setFromDate
focal_class.parameters: (Date fromDate)
focal_class.return: void
focal_class.signature: void setFromDate(Date fromDate)
focal_class.class_method_signature: Accountability.getToDate()
focal_class.full_signature: public Date getToDate()
focal_class.identifier: getToDate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getToDate()
focal_class.class_method_signature: Accountability.setToDate(Date toDate)
focal_class.full_signature:  void setToDate(Date toDate)
focal_class.identifier: setToDate
focal_class.parameters: (Date toDate)
focal_class.return: void
focal_class.signature: void setToDate(Date toDate)
focal_class.class_method_signature: Accountability.businessKeys()
focal_class.full_signature: @Override public String[] businessKeys()
focal_class.identifier: businessKeys
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] businessKeys()
focal_class.class_method_signature: Accountability.terminate(Date date)
focal_class.full_signature: public void terminate(Date date)
focal_class.identifier: terminate
focal_class.modifiers: public
focal_class.parameters: (Date date)
focal_class.return: void
focal_class.signature: void terminate(Date date)
focal_class.class_method_signature: Accountability.findAccountabilities(Class<T> accountabilityClass, Date date)
focal_class.full_signature: @SuppressWarnings("rawtypes") public static List<T> findAccountabilities(Class<T> accountabilityClass, Date date)
focal_class.identifier: findAccountabilities
focal_class.modifiers: @SuppressWarnings("rawtypes") public static
focal_class.parameters: (Class<T> accountabilityClass, Date date)
focal_class.return: List<T>
focal_class.signature: List<T> findAccountabilities(Class<T> accountabilityClass, Date date)
focal_class.class_method_signature: Accountability.findAccountabilitiesByParty(Party party, Date date)
focal_class.full_signature: @SuppressWarnings("rawtypes") static List<Accountability> findAccountabilitiesByParty(Party party, Date date)
focal_class.identifier: findAccountabilitiesByParty
focal_class.modifiers: @SuppressWarnings("rawtypes") static
focal_class.parameters: (Party party, Date date)
focal_class.return: List<Accountability>
focal_class.signature: List<Accountability> findAccountabilitiesByParty(Party party, Date date)
focal_class.class_method_signature: Accountability.when(PartyTerminatedEvent event)
focal_class.full_signature: public static void when(PartyTerminatedEvent event)
focal_class.identifier: when
focal_class.modifiers: public static
focal_class.parameters: (PartyTerminatedEvent event)
focal_class.return: void
focal_class.signature: void when(PartyTerminatedEvent event)
focal_class.superclass: extends AbstractEntity
focal_method.body: @SuppressWarnings("rawtypes")
      public static <T extends Accountability> List<T> findAccountabilities(Class<T> accountabilityClass, Date date) {
          return getRepository().createCriteriaQuery(accountabilityClass).le("fromDate", date).gt("toDate", date).list();
      }
focal_method.class_method_signature: Accountability.findAccountabilities(Class<T> accountabilityClass, Date date)
focal_method.full_signature: @SuppressWarnings("rawtypes") public static List<T> findAccountabilities(Class<T> accountabilityClass, Date date)
focal_method.identifier: findAccountabilities
focal_method.invocations: list gt le createCriteriaQuery getRepository
focal_method.modifiers: @SuppressWarnings("rawtypes") public static
focal_method.parameters: (Class<T> accountabilityClass, Date date)
focal_method.return: List<T>
focal_method.signature: List<T> findAccountabilities(Class<T> accountabilityClass, Date date)