1

我有一个虚拟表我想用 Hibernate 映射你能帮我定义吗dummy.hbm.xml

type=timestamp, Default=CURRENT_TIMESTAMP, extra=on update CURRENT_TIMESTAMP

我应该在 java 类中定义哪种类型的变量?

desc 假人;

+------------+--------------+------+-----+-------------------+-----------------------------+
| Field      | Type         | Null | Key | Default           | Extra                       |
+------------+--------------+------+-----+-------------------+-----------------------------+
| timestamp  | timestamp    | NO   |     | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
+------------+--------------+------+-----+-------------------+-----------------------------+
4

0 回答 0