How to write JPQL SELECT with embedded id? April 24, 2023 by Tarik SELECT m FROM Machine m WHERE m.machinePK.machineId = 10