Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.j.service;
- import com.j.model.Oferta;
- import com.j.model.Zgloszenie;
- public interface OfertaService {
- public void add(Oferta oferta);
- }
- package com.j.service.impl;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- import com.j.dao.impl.ZgloszenieDao;
- import com.j.model.Oferta;
- import com.j.model.Zgloszenie;
- import com.j.service.OfertaService;
- @Service
- public class OfertaServiceImpl implements OfertaService {
- @Autowired
- private OfertaDao ofertaDao;
- @Transactional
- public void add(Oferta oferta) {
- ofertaDao.add(oferta);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement