[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1074?page=c...
]
James Wilson commented on HBX-1074:
-----------------------------------
We are also having this problem. For Oracle views with columns of type NUMBER with no
scale, the reveng tool reports their scale as 0. This means that, if you have
<sql-type jdbc-type="DECIMAL" scale="0"
hibernate-type="java.lang.Long" />
<sql-type jdbc-type="DECIMAL" hibernate-type="java.lang.Double"
/>
in your reveng config file, these columns will be mapped to Long and the decimal portions
of their values will be truncated.
Let me know what you will need in terms of a test case. (I just signed up and I'm new
to your procedures.)
James
DelegatingReverseEngineeringStratey.columnToHibernateTypeName reports
invalid values
------------------------------------------------------------------------------------
Key: HBX-1074
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1074
Project: Hibernate Tools
Issue Type: Improvement
Components: reverse-engineer
Affects Versions: 3.2.1
Environment: MyEclipse w/ Hibernate rev engineering against Oracle 10g
Reporter: Joel Schuster
When implementing an extention to the [u]DelegatingReverseEngineeringStrategy [/u]the
[u]columnToHibernateTypeName [/u]does not report the true value of the [b]precision
[/b]and [b]scale [/b]column of the table description/definition.
The method signature:
[code]@Override
public String columnToHibernateTypeName( TableIdentifier table, String columnName, int
sqlType,
int length, int precision, int scale, boolean
nullable,
boolean generatedIdentifier) {[/code]
The precision and scale parameters are [b]int[/b]. If the values in the definition are
[b]null[/b] the values reported here come out as DATA_LENGTH and 0. Not null.
These parameters should be [b]Integer[/b] and be set to [b]null [/b]when applicable.
--
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