SpEL in @Query (Spring Data)

@Query("select t from Test t where name = :#{#data.name} and type = :#{#data.type}")
List<User> findByData(@Param("data") Data data);
 
public class Data {
	private String name;
	private DataType type;
}