Skip to content

Instantly share code, notes, and snippets.

@broccolinisoup
Created March 3, 2016 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save broccolinisoup/e60525eed4589cbf75f2 to your computer and use it in GitHub Desktop.
Save broccolinisoup/e60525eed4589cbf75f2 to your computer and use it in GitHub Desktop.
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