title: Odd behavior when using uppercase(combined with underscore) for column names in Hibernate(deployed on JBoss 5.1.0), for MySql DB
body: <p>I'm trying to specify column name using the @Column annotation:</p>
  
  <pre><code>@Column(name="ID") //also tried with @Column(name="[ID]") and @Column(name=""\ID"\")
  private int id; 
  
  @Column(name="TINY_IMAGE")
  private String tinyUrl; 
  </code></pre>
  
  <p>But, the hibernate (or MySQL?) gives the names 'id' and 'tinyUrl' for the above mentioned
  columns, respectively.</p>
  
  <p>However, when I use the code bellow, columns' names in the join table are just fine (SHOE_ID and ARTICLE_ID):</p>
  
  <pre><code>@JoinTable(name="SHOE_ARTICLE",
          joinColumns={@JoinColumn(name="SHOE_ID")},
          inverseJoinColumns={@JoinColumn(name="ARTICLE_ID")})
  </code></pre>
  
  <p>Here is the content of persistence.xml:</p>
  
  <pre><code>&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"  
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  
           version="2.0"&gt;
     &lt;persistence-unit name="YSPers"&gt;
        &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
        &lt;jta-data-source&gt;java:/ySDS&lt;/jta-data-source&gt;
        &lt;properties&gt;
           &lt;property name="hibernate.dialect" 
                    value="org.hibernate.dialect.MySQLDialect"/&gt;
           &lt;property name="hibernate.hbm2ddl.auto" value="update"/&gt;
           &lt;property name="hibernate.show_sql" value="false" /&gt;
           &lt;property name="hibernate.format_sql" value="false"/&gt;
           &lt;!-- property name="hibernate.hbm2ddl.auto" value="create-drop"/--&gt;
        &lt;/properties&gt;
     &lt;/persistence-unit&gt;
  &lt;/persistence&gt;       
  </code></pre>
  
  <p>How can I tell hibernate to use "name" property of @Column annotation for the column name?</p>