@Test public void getJudges_FoundPresidingJudges() { List<Judge> presidingJudges = judgment.getJudges(JudgeRole.PRESIDING_JUDGE); assertEquals(1, presidingJudges.size()); assertEquals(presidingJudges.get(0), JudgesMap.get(JudgeNames[2])); }
@Transient public List<Judge> getJudges() { return ImmutableList.copyOf(getJudges_()); }
Judgment extends IndexableObject { @Transient public List<Judge> getJudges() { return ImmutableList.copyOf(getJudges_()); } }
Judgment extends IndexableObject { @Transient public List<Judge> getJudges() { return ImmutableList.copyOf(getJudges_()); }  }
Judgment extends IndexableObject { @Transient public List<Judge> getJudges() { return ImmutableList.copyOf(getJudges_()); }  @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_judgment") @Override long getId(); @Embedded JudgmentSourceInfo getSourceInfo(); @Type(type="pl.edu.icm.saos.persistence.mapper.SaosPersistentLocalDate") LocalDate getReceiptDate(); @Type(type="pl.edu.icm.saos.persistence.mapper.SaosPersistentLocalDate") LocalDate getJudgmentDate(); @Transient List<Judge> getJudges(); @Transient List<String> getCourtReporters(); String getDecision(); String getSummary(); @Transient List<String> getLegalBases(); @Transient List<JudgmentReferencedRegulation> getReferencedRegulations(); @Transient List<JudgmentKeyword> getKeywords(); @Enumerated(EnumType.STRING) JudgmentType getJudgmentType(); @Transient String getRawTextContent(); @OneToOne(mappedBy="judgment", cascade=CascadeType.ALL, fetch=FetchType.LAZY, optional=false) JudgmentTextContent getTextContent(); @Transient List<String> getCaseNumbers(); @Transient List<CourtCase> getCourtCases(); @Transient abstract CourtType getCourtType(); DateTime getModificationDate(); @Transient List<ReferencedCourtCase> getReferencedCourtCases(); @ManyToOne MeansOfAppeal getMeansOfAppeal(); @ManyToOne JudgmentResult getJudgmentResult(); @Transient List<String> getLowerCourtJudgments(); @Transient MoneyAmount getMaxMoneyAmount(); @Transient boolean isSingleCourtCase(); void addCourtCase(CourtCase courtCase); CourtCase getCourtCase(String caseNumber); boolean containsCourtCase(String caseNumber); void removeCourtCase(CourtCase courtCase); void removeAllCourtCases(); void addJudge(Judge judge); @Transient List<Judge> getJudges(JudgeRole role); boolean containsJudge(String judgeName); Judge getJudge(String judgeName); void removeAllJudges(); void removeJudge(Judge judge); void addLegalBase(String legalBase); boolean containsLegalBase(String legalBase); void removeLegalBase(String legalBase); void addCourtReporter(String courtReporter); boolean containsCourtReporter(String courtReporter); void removeCourtReporter(String courtReporter); void addReferencedRegulation(JudgmentReferencedRegulation regulation); void removeAllReferencedRegulations(); void removeReferencedRegulation(JudgmentReferencedRegulation regulation); boolean containsReferencedRegulation(JudgmentReferencedRegulation regulation); void addKeyword(JudgmentKeyword keyword); void removeAllKeywords(); void removeKeyword(JudgmentKeyword keyword); @Transient JudgmentKeyword getKeyword(String phrase); boolean containsKeyword(String phrase); boolean containsKeyword(JudgmentKeyword keyword); boolean containsReferencedCourtCase(ReferencedCourtCase referencedCourtCase); boolean addReferencedCourtCase(ReferencedCourtCase referencedCourtCase); void removeReferencedCourtCase(ReferencedCourtCase referencedCourtCase); void addLowerCourtJudgment(String lowerCourtJudgment); boolean containsLowerCourtJudgment(String lowerCourtJudgment); void removeLowerCourtJudgment(String lowerCourtJudgment); @Override void passVisitorDown(Visitor visitor); void updateModificationDate(); void setReceiptDate(LocalDate receiptDate); void setJudgmentDate(LocalDate judgmentDate); void setDecision(String decision); void setSummary(String summary); void setJudgmentType(JudgmentType judgmentType); void setTextContent(JudgmentTextContent textContent); void setSourceInfo(JudgmentSourceInfo sourceInfo); void setMeansOfAppeal(MeansOfAppeal meansOfAppeal); void setJudgmentResult(JudgmentResult judgmentResult); void setMaxMoneyAmount(MoneyAmount maxMoneyAmount); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Judgment extends IndexableObject { @Transient public List<Judge> getJudges() { return ImmutableList.copyOf(getJudges_()); }  @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_judgment") @Override long getId(); @Embedded JudgmentSourceInfo getSourceInfo(); @Type(type="pl.edu.icm.saos.persistence.mapper.SaosPersistentLocalDate") LocalDate getReceiptDate(); @Type(type="pl.edu.icm.saos.persistence.mapper.SaosPersistentLocalDate") LocalDate getJudgmentDate(); @Transient List<Judge> getJudges(); @Transient List<String> getCourtReporters(); String getDecision(); String getSummary(); @Transient List<String> getLegalBases(); @Transient List<JudgmentReferencedRegulation> getReferencedRegulations(); @Transient List<JudgmentKeyword> getKeywords(); @Enumerated(EnumType.STRING) JudgmentType getJudgmentType(); @Transient String getRawTextContent(); @OneToOne(mappedBy="judgment", cascade=CascadeType.ALL, fetch=FetchType.LAZY, optional=false) JudgmentTextContent getTextContent(); @Transient List<String> getCaseNumbers(); @Transient List<CourtCase> getCourtCases(); @Transient abstract CourtType getCourtType(); DateTime getModificationDate(); @Transient List<ReferencedCourtCase> getReferencedCourtCases(); @ManyToOne MeansOfAppeal getMeansOfAppeal(); @ManyToOne JudgmentResult getJudgmentResult(); @Transient List<String> getLowerCourtJudgments(); @Transient MoneyAmount getMaxMoneyAmount(); @Transient boolean isSingleCourtCase(); void addCourtCase(CourtCase courtCase); CourtCase getCourtCase(String caseNumber); boolean containsCourtCase(String caseNumber); void removeCourtCase(CourtCase courtCase); void removeAllCourtCases(); void addJudge(Judge judge); @Transient List<Judge> getJudges(JudgeRole role); boolean containsJudge(String judgeName); Judge getJudge(String judgeName); void removeAllJudges(); void removeJudge(Judge judge); void addLegalBase(String legalBase); boolean containsLegalBase(String legalBase); void removeLegalBase(String legalBase); void addCourtReporter(String courtReporter); boolean containsCourtReporter(String courtReporter); void removeCourtReporter(String courtReporter); void addReferencedRegulation(JudgmentReferencedRegulation regulation); void removeAllReferencedRegulations(); void removeReferencedRegulation(JudgmentReferencedRegulation regulation); boolean containsReferencedRegulation(JudgmentReferencedRegulation regulation); void addKeyword(JudgmentKeyword keyword); void removeAllKeywords(); void removeKeyword(JudgmentKeyword keyword); @Transient JudgmentKeyword getKeyword(String phrase); boolean containsKeyword(String phrase); boolean containsKeyword(JudgmentKeyword keyword); boolean containsReferencedCourtCase(ReferencedCourtCase referencedCourtCase); boolean addReferencedCourtCase(ReferencedCourtCase referencedCourtCase); void removeReferencedCourtCase(ReferencedCourtCase referencedCourtCase); void addLowerCourtJudgment(String lowerCourtJudgment); boolean containsLowerCourtJudgment(String lowerCourtJudgment); void removeLowerCourtJudgment(String lowerCourtJudgment); @Override void passVisitorDown(Visitor visitor); void updateModificationDate(); void setReceiptDate(LocalDate receiptDate); void setJudgmentDate(LocalDate judgmentDate); void setDecision(String decision); void setSummary(String summary); void setJudgmentType(JudgmentType judgmentType); void setTextContent(JudgmentTextContent textContent); void setSourceInfo(JudgmentSourceInfo sourceInfo); void setMeansOfAppeal(MeansOfAppeal meansOfAppeal); void setJudgmentResult(JudgmentResult judgmentResult); void setMaxMoneyAmount(MoneyAmount maxMoneyAmount); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }