Advertisement
Guest User

DataService

a guest
Aug 1st, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package org.motechproject.uatbc.urm.repository;
  2.  
  3.  
  4.  
  5. import org.motechproject.mds.annotations.Lookup;
  6. import org.motechproject.mds.annotations.LookupField;
  7. import org.motechproject.mds.service.MotechDataService;
  8. import org.motechproject.uatbc.urm.domain.UserDetail;
  9.  
  10. import java.util.List;
  11.  
  12. /**
  13. * Interface for repository that persists simple records and allows CRUD.
  14. * MotechDataService base class will provide the implementation of this class as well
  15. * as methods for adding, deleting, saving and finding all instances. In this class we
  16. * define and custom lookups we may need.
  17. */
  18. public interface UserDetailDataService extends MotechDataService<UserDetail> {
  19. @Lookup
  20. UserDetail findRecordByName(@LookupField(name = "motechUserName") String recordName);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement