[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipselink-users] [EclipseLink-7155] ValidationException
- From: Tom Ware <tom.ware@xxxxxxxxxx>
- Date: Fri, 27 Apr 2012 11:19:09 -0400
- Delivered-to: firstname.lastname@example.org
- Organization: Oracle Corporation
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
Is there any reason you can't change the generated class?
On 27/04/2012 11:15 AM, Eric Le Goff wrote:
I am starting to use eclipseLink (v2.3.2) against an Oracle database in tomcat
One of my entity has to map a legacy table which contains columns of type
(These columns actually hold currency amounts)
When using menu JPA Tools -> Generate entities from Table...
this entity is generated and the correspoing fields have java.lang.Object type.
While loading a Tomcat context, I get a ValidationException [EclipseLink-7155]
claiming that the type [class java.lnag.Object] for the attribute [mycolumn] on
the entity class [com.acme.Foo] is not a valid type for a serialized mapping.
The attribute type must implement Serializable.
Would there be a way to have the generated field to have type like
java.math,BigDecimal instead of java.lang.Object ?
Any suggestion would help, but I bear in mind that I can't change the original
Oracle BINARY_DOUBLE type into some other more convenient type.
Thanks for your help
Eric Le Goff
eclipselink-users mailing list