package com.devcru.journowatch.api.services;

import org.springframework.beans.factory.annotation.Autowired;

import com.devcru.journowatch.api.daoimpl.VenueDaoImpl;
import com.devcru.journowatch.api.objects.Venue;

public class VenueService {
	
	@Autowired
	VenueDaoImpl vd;
	
	public boolean createVenue(Venue venue) {
		boolean isSuccess = vd.createVenue(venue);
		return isSuccess;
	}
	
	public Venue getVenue(Venue venue) {
		venue = vd.getVenue(venue);
		return venue;
	}
	
	public boolean updateVenue(Venue venue) {
		boolean isSuccess = vd.updateVenue(venue);
		return isSuccess;
	}
	
	public boolean deleteVenue(Venue venue) {
		boolean isSuccess = vd.deleteVenue(venue);
		return isSuccess;
	}

}

@@ -104,16 +104,64 @@
 owired;%0D
+%0Aimport org.springframework.stereotype.Service;%0D
 %0A%0D%0Aimpor
@@ -264,16 +264,26 @@
 nue;%0D%0A%0D%0A
+@Service%0D%0A
 public c
@@ -319,17 +319,25 @@
 owired%0D%0A
-
 %09
+private 
 VenueDao

Add other DaoImpl beans in rest-dispatcher-servlet.xml 4