Manuel Pérez Alcolea
03/24/2023, 5:17 AMSELECT book.*, GROUP_CONCAT(tag.title, CHAR(10)) tags FROM tag
JOIN book_tag_association AS ass ON tag.id = ass.tag_id
JOIN book ON ass.book_id = book.id
WHERE book.id = :book_id;
which generates a data class with everything a book
has but also a tags: String
. Is it possible to generate that class but with a tags: Set<String>
instead?