Important part:
Caused by: org.h2.jdbc.JdbcSQLException: Data conversion error converting \"JoaoCarmo\"; SQL statement:\n/* SELECT A.id, CONCAT(A.firstName, A.lastName) FROM Pessoa A WHERE A.id = 'JoaoCarmo' */ select pessoa0_.id as col_0_0_, (pessoa0_.first_name||pessoa0_.last_name) as col_1_0_ from pessoa pessoa0_ where pessoa0_.id='JoaoCarmo' limit ?
By what i see, it is getting the first parameter and not the projected fullName (result of a concat).
Where filtering AFTER select with projection gives error
The exception:
Important part:
Caused by: org.h2.jdbc.JdbcSQLException: Data conversion error converting \"JoaoCarmo\"; SQL statement:\n/* SELECT A.id, CONCAT(A.firstName, A.lastName) FROM Pessoa A WHERE A.id = 'JoaoCarmo' */ select pessoa0_.id as col_0_0_, (pessoa0_.first_name||pessoa0_.last_name) as col_1_0_ from pessoa pessoa0_ where pessoa0_.id='JoaoCarmo' limit ?
By what i see, it is getting the first parameter and not the projected
fullName
(result of a concat).