Guest User

Untitled

a guest
Jul 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package com.domain1
  2.  
  3. @Repository //expect that Spring will generate a bean
  4. public interface PersonRepository extends Repository<Person, UUID> {}
  5.  
  6. package com.domain2
  7.  
  8. //just an interface
  9. public interface PersonRepository extends Repository<Person, UUID> {}
  10.  
  11. //implementation
  12. @Component
  13. public PersonRepositoryImpl implements PersonRepository {}
  14.  
  15. public class MyClass {
  16. @Autowired
  17. com.domain1.PersonRepository personRepository;
  18. }
Add Comment
Please, Sign In to add comment