[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3311) Using wrong precision / scale in @Column silently doesn't creates table

Radosław Smogura (JIRA) noreply at atlassian.com
Thu May 29 05:48:34 EDT 2008


Using wrong precision / scale in @Column silently doesn't creates table
-----------------------------------------------------------------------

                 Key: HHH-3311
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3311
             Project: Hibernate3
          Issue Type: Bug
    Affects Versions: 3.2.5
         Environment: Hibernate: 3.2.5GA
SUN Application Server 9.1
PostgreSQL 8.2

Properties used inside persistence.xml
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
            Reporter: Radosław Smogura
            Priority: Minor


Using for example following code inside entity class:
@Column(scale=12, precision=2)
    public BigDecimal getFoo() {
        return foo;
    }

causes that target table silency doesn't create, no error is thrown or message shown.
Moreover the Hibernate Entity manager still tries to persist new classes and then throws error. In such case the PG exception shows SQL statement without quoting marks on text.



-- 
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