Ошибка:
2018-12-06 18:18:34.601 WARN 2304 --- [nio-8080-exec-8] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [2] did not match expected type [[B (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [2] did not match expected type [[B (n/a)]
Субъект:
public class DBFonts {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private Long id;
private String nameFont;
@ElementCollection
@CollectionTable(
name="SFont",
joinColumns=@JoinColumn(name="SFont_id")
)
@Lob @Basic(fetch = FetchType.LAZY)
@Column(length=100000)
private List<byte[]> standartFonts;
}
репо:
public interface FontRepo extends JpaRepository<DBFonts,Long> {
List<byte[]> findByStandartFonts(Long sfontid);
}
main:
List<byte[]> dBfontSt = fontRepo.findByStandartFonts(2L);
date standartFonts:

В чем может быть проблема? Любая информация будет полезна)