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>
  • Constructor Details

    • TeamRepository

      public TeamRepository()
  • Method Details

    • findByName

      public Team findByName(String name)
    • 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 interface Repository<Team>
      Overrides:
      save in class JpaRepository<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 interface Repository<Team>
      Overrides:
      remove in class JpaRepository<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 interface Repository<Team>
      Overrides:
      populate in class JpaRepository<Team>
      Parameters:
      json - the json map to populate
      context - the context
      Returns:
      the json map itself