I'm initializing my security model with this class: web-budget/SecurityInitializer.java at experimental · arthurgregorio/web-budget · GitHub
But when i query for roles on line #78 if is the first cycle of the "for", the role is inserted, because the database is empty. The problema is when the second interaction on for is executed, the "hasRole" method return false, because "query.getResultList()" on line #184 has a not empty list.
Firts time for runs, empty database, no roles saved:
Second time of for running
in this time, database still empty, the role that i query for is different from the first role, and the role that PL gave to me has a empty name...
any idea why this happening?
Btw, this is a open source project, if anyone want to fix this and pull request, i'm glad to accept!
I found the problem... the column name for my role entity was a SQL-99 reserved word