[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1074) DelegatingReverseEngineeringStratey.columnToHibernateTypeName reports invalid values

Joel Schuster (JIRA) noreply at atlassian.com
Thu Jul 10 15:17:12 EDT 2008


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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list