package com.realnet.Workspaceuser.Repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.realnet.Workspaceuser.Entity.Sec_teams;

@Repository
public interface Sec_teams_Repository extends CrudRepository<Sec_teams, Integer> {

	Sec_teams findById(int id);

	@Query(value = "SELECT * FROM sec_teams where account_id=?1", nativeQuery = true)
	List<Sec_teams> findAllByAccountid(Long accountId);
}
