Java mybatis converts oracle number types

there was a character type problem when using mybatisGenerator to map oracle database tables.
the fields represented by number (122.3) in oracle may be converted to bigDecimal , or to Short . In theory,
should all be bigDecimal ?
oracle (table is empty):

clipboard.png

java:

clipboard.png

uses the newer mybatisGenerator, in maven. I don"t know why.

Aug.23,2021

post out the generatorConfig.xml configuration file to see if there are special settings

Menu