RushORM 创建和更新时间
RushORM get created and updated time
目前我正在 Android 应用程序中尝试 RushORM,但我不知道如何访问数据库中创建和更新的字段。
字段 rush_created 和 rush_updated 会自动创建并按预期填充。
但我还是不知道如何访问这些文件。
即使在序列化 DB 对象时,字段也会丢失。
那么有人知道如何访问它们吗?
我问开发者:
RushCore.getInstance().getMetaData(yourObject).getCreated();
It returns updated and created as a long so you will just have to create
a new Date with the value.
如果有人也需要这些值。
目前我正在 Android 应用程序中尝试 RushORM,但我不知道如何访问数据库中创建和更新的字段。 字段 rush_created 和 rush_updated 会自动创建并按预期填充。
但我还是不知道如何访问这些文件。 即使在序列化 DB 对象时,字段也会丢失。
那么有人知道如何访问它们吗?
我问开发者:
RushCore.getInstance().getMetaData(yourObject).getCreated(); It returns updated and created as a long so you will just have to create a new Date with the value.
如果有人也需要这些值。