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 Team
findByName(String name)
Map<String,Object>
populate(Map<String,Object> json, Map<String,Object> context)
Populate the given json map with additional data.void
remove(Team entity)
Remove the given entity.Team
save(Team entity)
Save the given entity.
-
-
-
Method Detail
-
save
public Team save(Team entity)
Description copied from interface:Repository
Save 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:
save
in interfaceRepository<Team>
- Overrides:
save
in 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:Repository
Remove the given entity.- Specified by:
remove
in interfaceRepository<Team>
- Overrides:
remove
in 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:Repository
Populate the given json map with additional data.This method is called before returning the json data as response.
- Specified by:
populate
in interfaceRepository<Team>
- Overrides:
populate
in classJpaRepository<Team>
- Parameters:
json
- the json map to populatecontext
- the context- Returns:
- the json map itself
-
-