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

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Tue Jan 26 07:44:29 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35336#action_35336 ] 

Max Rydahl Andersen commented on HBX-1074:
------------------------------------------

for this a simple oracle schema would be needed to reproduce, but my guess is that oracle is simply lying in its metadata.

> 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