StaffAuthority extends OrmActiveRecord<StaffAuthority> { public static List<StaffAuthority> find(final OrmRepository rep, String staffId) { return rep.tmpl().find("from StaffAuthority where staffId=?1", staffId); }  static List<StaffAuthority> find(final OrmRepository rep, String staffId);  }
@Test public void 権限一覧を検索する() { tx(() -> { assertThat(StaffAuthority.find(rep, "staffA").size(), is(3)); assertThat(StaffAuthority.find(rep, "staffB").size(), is(2)); }