everson santos wrote:
I did @transient because I don't have theses atributes in my tables(user and role). I think is correct isn't ?
I admit, i am not very sure...
Your "Roles" did not load because you have not set the "lazy" attribute to false....The default for One to many (from User to roles) is true.
As a result, when you load the User, your roles are not loaded.
You will need to set the "lazy" attribute to "false".