Hibernate version: 3
Jboss 4.2 + Seam2.1 + Hibernate3 in Eclipse Ganymede
I´m trying to built an application that serch for results in an SQL Server 2005 table.
This table have some columns of type decimal(5,2), and i have declare the fields on the entity to receive them as BigDecimal.
But wend running on Jboss i get the this error:
Code:
12:50:16,338 INFO [TableMetadata] table found: PES.dbo.FuncFerias
12:50:16,338 INFO [TableMetadata] columns: [dias_ferias, dias_suplement, dias_por_gozar, dias_antig, numero, obs, data_login, ano, login, dias_descontados, dias_gozados, rowid, dias_acumulados, dias_idade]
12:50:16,338 WARN [ServiceController] Problem starting service persistence.units:ear=seamFerias-ear.ear,unitName=seamFerias
javax.persistence.PersistenceException: [PersistenceUnit: seamFerias] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
...
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.HibernateException: Wrong column type in PES.dbo.FuncFerias for column dias_acumulados. Found: decimal, expected: numeric(19,2)
at org.hibernate.mapping.Table.validateColumns(Table.java:284)
I suppose it have to do whit the Dialect file in hibernate, but i don´t know how to solve it.
Does any one know it?
Thanks for the attention
Paulo