Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. package com.j.service;
  2.  
  3. import com.j.model.Oferta;
  4. import com.j.model.Zgloszenie;
  5.  
  6. public interface OfertaService {
  7. public void add(Oferta oferta);
  8. }
  9.  
  10.  
  11.  
  12.  
  13. package com.j.service.impl;
  14.  
  15. import org.springframework.beans.factory.annotation.Autowired;
  16. import org.springframework.stereotype.Service;
  17. import org.springframework.transaction.annotation.Transactional;
  18.  
  19. import com.j.dao.impl.ZgloszenieDao;
  20. import com.j.model.Oferta;
  21. import com.j.model.Zgloszenie;
  22. import com.j.service.OfertaService;
  23.  
  24. @Service
  25. public class OfertaServiceImpl implements OfertaService {
  26.  
  27. @Autowired
  28. private OfertaDao ofertaDao;
  29.  
  30. @Transactional
  31. public void add(Oferta oferta) {
  32. ofertaDao.add(oferta);
  33.  
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement