[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-596) seam-gen not generating annotation for BigDecimal fields appropriately

Gavin King (JIRA) jira-events at jboss.com
Fri Dec 15 01:37:41 EST 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-596?page=comments#action_12348791 ] 
            
Gavin King commented on JBSEAM-596:
-----------------------------------

Sounds more like a JDBC driver problem. Max?

> seam-gen not generating annotation for BigDecimal fields appropriately
> ----------------------------------------------------------------------
>
>                 Key: JBSEAM-596
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-596
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 1.1.0.GA, 1.1.0.CR2
>            Reporter: Cheng Lee
>         Assigned To: Max Andersen
>             Fix For: 1.1.1.GA
>
>
> As of JBoss SEAM 1.1.0 CR2 the seam reverse engineering tool ("seam.bat generate-entities") is not generating the appropriate annotation for BigDecimal. Precision is generated but Scale is omitted therefore gives the following exception while deploying:
> javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: bb, expected: numeric(10,0)
> Should have generated this:
> @Column(name = "bb", nullable = false, precision = 10, scale = 2)
> instead of:
> @Column(name = "bb", nullable = false, precision = 10) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list