initial service work

This commit is contained in:
eugenp 2013-05-04 22:45:59 +03:00
parent 015050f928
commit 480edf4a3c
3 changed files with 25 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package org.baeldung.spring.persistence.dao;
import org.springframework.stereotype.Repository;
@Repository
public class FooDao {
public class FooDao implements IFooDao {
public FooDao() {
super();

View File

@ -0,0 +1,5 @@
package org.baeldung.spring.persistence.dao;
public interface IFooDao {
//
}

View File

@ -0,0 +1,19 @@
package org.baeldung.spring.persistence.service;
import org.baeldung.spring.persistence.dao.IFooDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class FooService {
@Autowired
private IFooDao fooDao;
public FooService() {
super();
}
// API
}