hbm.xml中的类型 | pojo类型 | mysql字段类型 | oracle字段类型 |
type="integer" | Integer | int | |
type="Long" | Long | BIGINT(20) | number(20) |
type="string" | String | VARCHAR(128) | VARCHAR2(50) |
type="Date" | Date | datetime | DATE |
type="boolean" | boolean = false; | BIT(1) | |
type="binary" | byte[] | BLOB | |
type="double" | double | DOUBLE | |
type="big_decimal" | BigDecimal | DECIMAL(24,5) |