Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.edu.ug.tent.springintro.service;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.beans.factory.annotation.Qualifier;
- import org.springframework.stereotype.Service;
- import pl.edu.ug.tent.springintro.domain.Person;
- @Service
- public class PersonService {
- public Person getPrezes() {
- return prezes;
- }
- public Person getWiceprezes() {
- return wiceprezes;
- }
- public Person getSekretarka() {
- return sekretarka;
- }
- @Autowired
- @Qualifier("prezes")
- Person prezes;
- @Autowired
- @Qualifier("wiceprezes")
- Person wiceprezes;
- @Autowired
- @Qualifier("sekretarka")
- Person sekretarka;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement