title: Spring Security users-by-username-query with id_user
body: <p>I want to use spring security but I've never used it before.I want to retrieve user and roles from my tables (users,roles and user_roles).I have investigated about <strong>users-by-username-query</strong>. In all examples were same as the following example.</p>
  
  <pre><code>&lt;authentication-manager&gt;
    &lt;authentication-provider&gt;
      &lt;jdbc-user-service data-source-ref="dataSource"
        users-by-username-query=
          "select username,password, enabled from users where username=?"
        authorities-by-username-query=
          "select username, role from user_roles where username =?  " /&gt;
    &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  </code></pre>
  
  <p>But I want to use  <strong>id_user</strong> and <strong>id_role</strong> instead of  <strong>username</strong> and <strong>role</strong>. Is it possible ? And must I change login page field names ? 
  Thanks in advance </p>