Why Spring Data JPA Specification interface extends Serializable?

Viewed 251

I am curious about why Spring/JPA has made Specification interface Serializable? I understand that jpa entities should be serializable and jpa Specification uses these entities. But Specification just implements query builder, why make it Serializable? -

public interface Specification<T> extends Serializable 
0 Answers
Related