Hibernate分片和JPA [英] Hibernate shards and JPA
问题描述
我正在为使用hibernate-jpa的项目评估Hibernate Shards。
我想知道JPA有多成熟的碎片?文档大多涵盖了SessionFactory的修改。
其他任何使用JPA进行水平分区的建议?
谢谢。
< Hibernate Shards似乎并不是非常积极地开发,并且从未超出第一个测试版本。请参阅 https://hibernate.onjira.com/browse/HSHARDS
在 https:/ /github.com/karbo/hibernate-shards/tree/hibernate-3.3 ,它已经升级到了更新版本的Hibernate。
Spring有一些支持为此在这里概述 Hibernate中的多租户
Hibernate 4(JPA)看起来似乎包含多租户:Spring + Hibernate + Spring + Spring + Spring + Spring + Hibernate + JPA +多个数据库
I'm evaluating Hibernate Shards for a project that uses hibernate-jpa.
I was wondering how mature is shards when it comes to JPA? The documentation mostly covers the SessionFactory modifications.
Any other recommendations for horizontal partitioning with JPA ?
Thanks.
It would seem that Hibernate Shards isn't developed very actively and have never gone beyond the first beta. See https://hibernate.onjira.com/browse/HSHARDS
There is a forked version on https://github.com/karbo/hibernate-shards/tree/hibernate-3.3 which has been upgraded to a newer version of Hibernate.
Spring has some support for this which is outlined here Multi tenancy in Hibernate
Hibernate 4 (JPA) does seem to have multi tenant included: Spring + Hibernate + JPA + multiple databases
这篇关于Hibernate分片和JPA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!