Changing default field types when generating entities from tables

1.1k Views Asked by At

Using Eclipse Dali tools to "generate entities from tables" but I want to change the default table column / entity field mappings.

For example when column type is int the tools generate the following mapping.

@Column(name="QUANTITY")
private int quantity;

But when the quantity is nullable, it makes problems during the validation phase, so I change it to:

@Column(name="QUANTITY",  columnDefinition="int")
private BigDecimal quantity;

Can this be configured globally?

0

There are 0 best solutions below