Hello Nimo, it depends on how the JPA Implementation access the properties if it is defined to access via a setter/getter then
you should add them, otherwise it will access the properties with reflection.
In your example you should add the setter and getter because your composite id it's not generated or you will have to also use reflection to change it's value
Regards,