Hello,
I have tried to make this particular column be reverse engineered as BigDecimal and can’t figure out what is needed to make it work. Here is the table defintion:
create table items(
ItemNumber varchar(6) PRIMARY KEY not null,
Description varchar(28),
GenericCode varchar(6),
GenericName varchar(28),
GenericRating char(2),
AWP decimal(30,2),
UnitOfIssue char(2),
PackageSize char(5),
Color char(5),
Dosage char(3),
ChangeDate date,
ScheduleCode char(2),
Manufacturer varchar(10),
UPC varchar(11),
NDC varchar(11))
The AWP column should be a BigDecimal, not double. On page 3 of the RE wizard I have tried filling in the JDBC type using java.math.BigDecimal and unqualified BigDecimal. I have left the Hibernate type blank and used BigDecimalType, qualified and unqualified.
The relevant part of my mapping file:
<property name="awp" type="java.lang.Double">
<column name="AWP" precision="30" />
</property>
What do you have to do to make a column be reverse engineered as BigDecimal?
My sig says ME 4.1 but I’m on 4.11.