here is a repository, and I want to find entity where menu\_id in a collection, I think my function name is ok 

```
@Repository
public interface MenuEntityRepository extends JpaRepository<MenuEntity,Long>{
    ArrayList<MenuEntity> findByMenuIdIn(List<Long> menuId);
}

```

but I always get error:

```
java.lang.IllegalArgumentException: Parameter value element [1] did not match expected type [java.lang.Long (n/a)]

```

> 
> menu\_id is @Entity menu
> 
> 
> as Long menu\_id
> 
> 
> but in mysql type is bigint(20)
> 
> 
> so I got menu\_id as a List of BigInteger so I got error
> 
> 
>