]
Max Andersen commented on JBSEAM-596:
-------------------------------------
well the issue is that Column.DEFAULT_SCALE is 2 and thus we don't generate it.
But apparently that default is being ignored by either hibernate or annotations.
will look into it.
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: