title: Hibernate username password case sensitivity with Oracle11g
body: <p>I'm using <code>Hibernate</code> with Oracle 11g.  The code that worked with 10g doesn't work with 11g because hibernate changes the case of the username from example: admin to ADMIN.  Oracle 11g by default creates case sensitive usernames and passwords.  I've already created the user and a lot of objects before realizing that my code:</p>
  
  <pre><code>Context initCtx = new InitialContext();
  
  Context envCtx = (Context)initCtx.lookup("java:comp/env");
  
  DataSource ds = (DataSource)envCtx.lookup("jdbc/AdminDS");
  
  Connection con  = ds.getConnection();
  </code></pre>
  
  <p>The connection doesn't work because the username in the database is lowercase admin and hibernate converts it to uppercase ADMIN.  </p>
  
  <p>I've tried multiple things....including creating the connection with the lowercase username, password; e.g., ds.getConnection("admin","password")....no dice....any ideas as to how to convert the username to lowercase because at deploy time....</p>