[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2467?page=all ]
Christian Bauer resolved HHH-2467:
----------------------------------
Resolution: Rejected
Only decimals have precision and scale. Use
http://forum.hibernate.org
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira