]
Max Rydahl Andersen commented on HBX-1074:
------------------------------------------
ehh..could you please provide a testcase where this causes problems ? thanks.
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: