Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.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
使用hibernate时进行索引调用的最佳位置_Hibernate_Solr - Fatal编程技术网

使用hibernate时进行索引调用的最佳位置

使用hibernate时进行索引调用的最佳位置,hibernate,solr,Hibernate,Solr,目前,我正在考虑代码中最好的地方是哪里,我必须将调用方法放在索引服务(solR)中 事实上,我必须确保数据库中存储的每个实体都被索引,我正在使用hibernate,我将尝试用拦截器实现它 有什么建议吗?我们已将呼叫置于hibernate的实体拦截器。独一 如果允许EntityInterceptor,我们将实现filterchain模式来传递实体 跨越许多拦截器 希望它能帮助别人

目前,我正在考虑代码中最好的地方是哪里,我必须将调用方法放在索引服务(solR)中

事实上,我必须确保数据库中存储的每个实体都被索引,我正在使用hibernate,我将尝试用拦截器实现它


有什么建议吗?

我们已将呼叫置于hibernate的实体拦截器。独一

如果允许EntityInterceptor,我们将实现filterchain模式来传递实体

跨越许多拦截器

希望它能帮助别人