Created
March 3, 2016 04:54
-
-
Save broccolinisoup/e60525eed4589cbf75f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.broccolinisoup.service; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
import org.springframework.transaction.annotation.Transactional; | |
import com.broccolinisoup.model.Goal; | |
import com.broccolinisoup.repository.GoalRepository; | |
@Service("goalService") | |
public class GoalServiceImpl implements GoalService { | |
@Autowired | |
private GoalRepository goalRepository; | |
@Transactional | |
public Goal save(Goal goal) { | |
return goalRepository.save(goal); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment