// Path: ch07/springtobemulti/HibernateSub/src/main/java/info/thecodinglive/hiber/model/Team.java
// @Entity
// @Table(name="teams")
// public class Team {
//     @Id
//     @GeneratedValue
//     private Integer id;
//     
// 	private String teamName;
// 
//     private Integer rating;
// 
//     public String getTeamName() {
// 		return teamName;
// 	}
// 	public void setTeamName(String teamName) {
// 		this.teamName = teamName;
// 	}
// 
// 
//     public Integer getId() {
//         return id;
//     }
//     public void setId(Integer id) {
//         this.id = id;
//     }
// 
//     public Integer getRating() {
//         return rating;
//     }
//     public void setRating(Integer rating) {
//         this.rating = rating;
//     }
// }
// 
// Path: ch07/springtobemulti/HibernateSub/src/main/java/info/thecodinglive/hiber/repository/TeamDao.java
// public interface TeamDao {
// 
//     public void addTeam(Team team);
//     public void updateTeam(Team team);
//     public Team getTeam(int id);
//     public void deleteTeam(int id);
//     public List<Team> getTeams();
// }


import info.thecodinglive.hiber.model.Team;
import info.thecodinglive.hiber.repository.TeamDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
package info.thecodinglive.hiber.service;





@Service
@Transactional
public class TeamServiceImpl implements TeamService{

    @Autowired
// Path: ch07/springtobemulti/HibernateSub/src/main/java/info/thecodinglive/hiber/model/Team.java
// @Entity
// @Table(name="teams")
// public class Team {
//     @Id
//     @GeneratedValue
//     private Integer id;
//     
// 	private String teamName;
// 
//     private Integer rating;
// 
//     public String getTeamName() {
// 		return teamName;
// 	}
// 	public void setTeamName(String teamName) {
// 		this.teamName = teamName;
// 	}
// 
// 
//     public Integer getId() {
//         return id;
//     }
//     public void setId(Integer id) {
//         this.id = id;
//     }
// 
//     public Integer getRating() {
//         return rating;
//     }
//     public void setRating(Integer rating) {
//         this.rating = rating;
//     }
// }
// 
// Path: ch07/springtobemulti/HibernateSub/src/main/java/info/thecodinglive/hiber/repository/TeamDao.java
// public interface TeamDao {
// 
//     public void addTeam(Team team);
//     public void updateTeam(Team team);
//     public Team getTeam(int id);
//     public void deleteTeam(int id);
//     public List<Team> getTeams();
// }


// Path: ch07/springtobemulti/HibernateSub/src/main/java/info/thecodinglive/hiber/service/TeamServiceImpl.java
import info.thecodinglive.hiber.model.Team;
import info.thecodinglive.hiber.repository.TeamDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

package info.thecodinglive.hiber.service;





@Service
@Transactional
public class TeamServiceImpl implements TeamService{

    @Autowired
    private TeamDao teamDao;