Querydsl null-safe concatenation
问题 Suppose you have the following data in table corresponding to the class Person , what is the correct way to search null-safely for the concatenation of fields name1 and name2 ? @Entity public class Person { Long id; String name1; String name2; // Getters and setters omitted for brevity } id | name1 | name2 ------------------------ 1 | Foo | null 2 | null | Bar 3 | Foo | Bar By default the concatentation of two columns results in null if either is null. public List<String> nameConcatenations()