@Test public void testLoad() { ActorRelation ar1 = saveOne(); ActorRelation ar2 = actorRelationService.load(ar1.getType(), ar1 .getMaster().getId(), ar1.getFollower().getId()); Assert.assertNotNull(ar2); Assert.assertEquals(ar1, ar2); }
public ActorRelation load(Integer type, Long masterId, Long followerId) { return this.actorRelationDao.load(type, masterId, followerId); }
ActorRelationServiceImpl extends DefaultCrudService<ActorRelation> implements ActorRelationService { public ActorRelation load(Integer type, Long masterId, Long followerId) { return this.actorRelationDao.load(type, masterId, followerId); } }
ActorRelationServiceImpl extends DefaultCrudService<ActorRelation> implements ActorRelationService { public ActorRelation load(Integer type, Long masterId, Long followerId) { return this.actorRelationDao.load(type, masterId, followerId); }  }
ActorRelationServiceImpl extends DefaultCrudService<ActorRelation> implements ActorRelationService { public ActorRelation load(Integer type, Long masterId, Long followerId) { return this.actorRelationDao.load(type, masterId, followerId); }  @Autowired void setActorRelationDao(ActorRelationDao actorRelationDao); List<ActorRelation> findByMaster(Integer type, Long masterId); ActorRelation load(Integer type, Long masterId, Long followerId); List<ActorRelation> findByFollower(Integer type, Long followerId); }
ActorRelationServiceImpl extends DefaultCrudService<ActorRelation> implements ActorRelationService { public ActorRelation load(Integer type, Long masterId, Long followerId) { return this.actorRelationDao.load(type, masterId, followerId); }  @Autowired void setActorRelationDao(ActorRelationDao actorRelationDao); List<ActorRelation> findByMaster(Integer type, Long masterId); ActorRelation load(Integer type, Long masterId, Long followerId); List<ActorRelation> findByFollower(Integer type, Long followerId);  }