You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I now need to write the entity data to the database and read the data into the entity.
When data is written to the database, the timezone can be converted (timezone takes effect) and stored in the database.
However, after reading data from the database, the property timezone in the entity is still the same as the timezone parameter in the database connection parameter. The timezone annotation does not take effect.
I would like to ask: Does the timezone validation logic not cover the latter case?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I now need to write the entity data to the database and read the data into the entity.
I would like to ask: Does the timezone validation logic not cover the latter case?
Environment:
我现在需要将实体数据写入到数据库,同时将数据读取到实体中。
1.写入数据库的时候,时区可以被正常转换(timezone生效),正常存储到数据库中;
2.但是从数据库中读取数据后,实体中的这个属性时区仍然和数据库连接参数中的时区参数保持一致,timezone注解没有生效。
我想问:timezone的生效逻辑不覆盖后者的情况吗?
环境:
Beta Was this translation helpful? Give feedback.
All reactions