对于hibernate ogm和hibernate orm一起查询?(QUERY for hibernate ogm and hibernate orm together?)
我测试不同的数据库,到目前为止有mysql,postgresql和mongoDB。 我写了一个insert方法,我可以用于所有三个数据库。 但到目前为止,我没有找到任何方法来编写一个函数,该函数从包含所有三个数据库的表/集合中读取所有现有数据。 到目前为止,我使用了hibernate搜索,只适用于mongoDB。
有人知道一个示例代码或一些提示来编写该通用查询吗?
提前致谢 :)
i test different databases, so far there are mysql, postgresql and mongoDB. I wrote an insert method that I can use for all three databases. But until now I didn't find any way to write a function that reads all existing data from a table/collection with all three databases. so far I used hibernate search and that just worked for mongoDB.
does anybody know an example code or some hints to write that generic query?
Thanks in advance :)
原文:https://stackoverflow.com/questions/31473023
最满意答案
它由运输(兔子,redis)处理。
每个下游模块都会竞争消息 - 兔子通常会循环播放; 用redis它会更随机。
It's handled by the transport (rabbit, redis).
Each downstream module competes for messages - with rabbit it will generally be round robin; with redis it will be more random.
相关问答
更多-
是不是有一款什么手机软件,可以很自然的拉长腿部?不是美图秀秀,有知道的不?[2022-10-20]
spring -
春天的英语怎么读?[2022-05-21]
spring -
你能用assertion检查num是否为零。 像这样的东西? Can you use assertion to check if the num greater zero. Something like this?
-
Spring XD容器组(Spring XD container groups)[2022-02-15]
不是在这个时候; 容器匹配对容器属性是静态的。 我们已经讨论过为容器匹配提供更多灵活性,并将在未来版本中考虑。 随意打开JIRA新功能问题 。 那就是说,你能更详细地解释一下你的要求吗? 例如,如果group1有1个容器而group2有3个,则根据group1的容器是否正在运行,流的部署拓扑会有很大差异。 Not at this time; the container match is static against container properties. We have talked about exp ... -
它由运输(兔子,redis)处理。 每个下游模块都会竞争消息 - 兔子通常会循环播放; 用redis它会更随机。 It's handled by the transport (rabbit, redis). Each downstream module competes for messages - with rabbit it will generally be round robin; with redis it will be more random.
-
你不能使用“纯”java - XD模块是Spring Integration应用程序,需要它提供的基础设施。 You can't use "pure" java - XD modules are Spring Integration applications and need the infrastructure it provides.
-
问题似乎是用户错误。 显然,在模块中组合XML配置和JavaConfig时,将忽略JavaConfig。 The problem appears to be user error. Apparently when combining XML config and JavaConfig in a module, the JavaConfig is ignored.
-
部署的实例数由部署清单控制,具体为: [MODULENAME]模块。.Count之间 模块实例的数量(见上文)。 您可以控制部署模块的容器 [MODULENAME]模块。.criteria The number of instances deployed is controlled by the deployment manifest, specifically: module.[modulename].count The number of module instances (see above). Yo ...
-
您需要使用POJO来定义模块选项(即模块的spring配置中的任何占位符),而不是在模块的config文件夹中定义选项的属性文件的“简单”方法。 除了解析占位符之外,您还可以获得POJO选项,您可以实现ProfileNamesProvider接口,并且在profilesToActivate()方法中,您可以返回要为特定模块定义(实例)激活的配置文件。 返回的配置文件可以根据用户在POJO的setter方法中提供的选项进行计算。 请参阅http://docs.spring.io/spring-xd/docs/ ...
-
Redis仅用于分析,仅作为支持的平台。 要运输,您需要Redis或Rabbit。 基本上你只需要根据各自的文档安装Redis和RabbitMQ。 它们可以位于相同或不同的服务器中,理想情况下,您可以使用其高可用性选项。 例如Redis Sentinal。 除非您想将Redis的默认传输更改为Rabbit,否则您不需要RabbitMQ。 安装Redis和Rabbit后,启动它们并将其主机:端口信息(以及任何其他适用的)添加到XD安装(在所有节点中)的servers.yml中,并启动管理和容器。 通过使用zo ...