Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 是否可以使用EclipseLink HistoryPolicy跟踪用户活动?_Java_Jpa_Eclipselink_History_User Activity - Fatal编程技术网

Java 是否可以使用EclipseLink HistoryPolicy跟踪用户活动?

Java 是否可以使用EclipseLink HistoryPolicy跟踪用户活动?,java,jpa,eclipselink,history,user-activity,Java,Jpa,Eclipselink,History,User Activity,我正在使用EclipseLink HistoryPolicy跟踪实体的更改,并且我的实体具有CREATEDBY和UPDATEDBY属性 有了这些属性和EclipseLink历史查询的帮助,我可以获得用户在一段时间内与特定实体相关的活动吗 比如说 -User1 created an employee with the id of 34 at 2016-04-22 13:53:44 -User2 updated an employee with the id of 34 at 2016-05-04

我正在使用EclipseLink HistoryPolicy跟踪实体的更改,并且我的实体具有
CREATEDBY
UPDATEDBY
属性

有了这些属性和EclipseLink历史查询的帮助,我可以获得用户在一段时间内与特定实体相关的活动吗

比如说

-User1 created an employee with the id of 34 at 2016-04-22 13:53:44
-User2 updated an employee with the id of 34 at 2016-05-04 17:25:21
etc.
如果没有,我如何有效地完成这项任务