[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2467) precision/scale ignored when using java.lang.Long with hbm2ddl

mark schrijver (JIRA) noreply at atlassian.com
Sun Mar 4 06:08:33 EST 2007


precision/scale ignored when using java.lang.Long with hbm2ddl
--------------------------------------------------------------

         Key: HHH-2467
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2467
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.1    
 Environment: Hibernate 3.1.0, database: Oracle 10 (used dialect: Oracle9)
    Reporter: mark schrijver


I have several properties of type=java.lang.Long. This works fine when creating the POJOs from the HBM files. But when I try to create the sql from the HBM files with hbm2ddl all my java.lang.Long properties are converted into number(19,0) collumns. Even though I have set the precision and scale attributes on the collumn.

Example property:
<property name="gemeenteCode" type="java.lang.Long">
    <column name="MCP_CODE" precision="4" scale="0" not-null="true" unique="true" />
</property>

resulting sql:
MCP_CODE number(19,0) not null unique

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list