My project's persistence layer is configured with JPA. There are only two places where the existence of Hibernate is apparent: the JPA
persistence.xml and the lib directory, where the Hibernate jars are located.
As a consequence, I am able to do all my persistence operations through
javax.persistence.EntityManagerFactory; no Hibernate-specific Java code is needed.
Now, I would like to use Hibernate Shards in this project. However, according to the
documentation, I have to start using the Hibernate SessionFactory in order to use Shards. The documentation mentions that:
Quote:
Many of you will quickly realize that the configuration mechanism we've provided won't work if you're configuring your SessionFactory via JPA. It's true. We expect this deficiency to be addressed shortly. (
source)
Do you know when it will be possible to use Shards via a JPA-configured SessionFactory? This is important, because I would not like to include Hibernate-specific code in my persistence layer.
Ps. Shards is cool!