简体   繁体   English

关于datetime和tinyint的数据类型查询

[英]Datatype query on datetime and tinyint

I have a Mysql datetime column, what should be the corresponding datatype in a java entity bean class for this column? 我有一个Mysql datetime列,该列的java实体bean类中应该是相应的数据类型?

What would the java-type be for a Mysql tinyint? java-type对于Mysql tinyint会是什么样的?

  • For datetime java.sql.Date 对于datetime java.sql.Date
  • for tinyint byte 对于tinyint字节

here is the mapping table 是映射表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM