Java数据类型 | Hibernate数据类型 |
byte,java.lang.Byte | byte |
short,java.lang.Short | short |
int,java.lang.Integer | integer |
long,java.lang.Long | long |
float,java.lang.Float | float |
double,java.lang.Double | double |
java.math.BigDecimal | big_decimal |
char,java.lang.Character | character |
boolean,java.lang.Boolean | boolean |
java.lang.String | string |
boolean,java.lang.Boolean | boolean |
java.lang.String | string |
boolean,java.lang.Boolean | yes_no |
boolean,java.lang.Boolean | true_false |
java.util.Date,java.sql.Date | date |
java.util.Date,java.sql.Time | time |
java.util.Date,java.sql.Timestamp | timestamp |
java.util.Calendar | calendar |
java.util.Calendar | calendar_date |
byte[] | binary |
java.lang.String | text |
java.io.Serializable | serializable |
java.sql.Clob | clob |
java.sql.Blob | blob |
java.lang.Class | class |
java.util.Locale | locale |
java.util.TimeZone | timezone |
java.util.Currency | currency |