Hi everyone,
I am trying to do some NatveQueries, but I am stuck with @SqlResultSetMapping configuration.
I have those classes:
My question is, how to write propper @SqlResultSetMapping for class LocalUser. My
test SQL statement is
and I would like to get one Entitny Local user, with username user, password passwd and List of roles, where is admin with id 1.
I figgured as far something like this:
but it gives me two objects, instead of one.
Can anybody help me please?
Thanks