Package com.axelor.team.db.repo
Class TeamRepository
- java.lang.Object
-
- com.axelor.db.JpaRepository<Team>
-
- com.axelor.team.db.repo.TeamRepository
-
- All Implemented Interfaces:
Repository<Team>
public class TeamRepository extends JpaRepository<Team>
-
-
Field Summary
-
Fields inherited from class com.axelor.db.JpaRepository
modelClass
-
-
Constructor Summary
Constructors Constructor Description TeamRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamfindByName(String name)Map<String,Object>populate(Map<String,Object> json, Map<String,Object> context)Populate the given json map with additional data.voidremove(Team entity)Remove the given entity.Teamsave(Team entity)Save the given entity.
-
-
-
Method Detail
-
save
public Team save(Team entity)
Description copied from interface:RepositorySave the given entity.Depending on the implementation, it may return same entity or a copy of it. For example JPA implementation may return a copy if the given entity can't be managed.
- Specified by:
savein interfaceRepository<Team>- Overrides:
savein classJpaRepository<Team>- Parameters:
entity- the entity object to save- Returns:
- an instance of the entity with saved state
-
remove
public void remove(Team entity)
Description copied from interface:RepositoryRemove the given entity.- Specified by:
removein interfaceRepository<Team>- Overrides:
removein classJpaRepository<Team>- Parameters:
entity- the entity object
-
populate
public Map<String,Object> populate(Map<String,Object> json, Map<String,Object> context)
Description copied from interface:RepositoryPopulate the given json map with additional data.This method is called before returning the json data as response.
- Specified by:
populatein interfaceRepository<Team>- Overrides:
populatein classJpaRepository<Team>- Parameters:
json- the json map to populatecontext- the context- Returns:
- the json map itself
-
-