ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Agrawal (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-1794) Ignite should support Hibernate 5
Date Sun, 02 Oct 2016 14:14:20 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15538994#comment-15538994
] 

Anil Agrawal edited comment on IGNITE-1794 at 10/2/16 2:14 PM:
---------------------------------------------------------------

As a workaround to use apache ignite as Hibernate5 L2 cache put below classes (Find attached
files) to your src folder

HibernateCollectionRegionForIgnite.java
HibernateEntityRegionForIgnite.java
HibernateRegionFactoryForIgnite.java
HibernateTimestampsRegionForIgnite.java

And use class HibernateRegionFactoryForIgnite as value for key hibernate.cache.region.factory_class
in hibernate configuration properties


was (Author: anilagrawal038):
As a work around for Hibernate 5 compatibility issue, you can override the function of class
HibernateRegionFactory as below

As a workaround to use apache ignite as Hibernate5 L2 cache put below classes to your src
folder

HibernateCollectionRegionForIgnite.java
HibernateEntityRegionForIgnite.java
HibernateRegionFactoryForIgnite.java
HibernateTimestampsRegionForIgnite.java

And use class HibernateRegionFactoryForIgnite as value for key hibernate.cache.region.factory_class
in hibernate configuration properties

> Ignite should support Hibernate 5
> ---------------------------------
>
>                 Key: IGNITE-1794
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1794
>             Project: Ignite
>          Issue Type: Test
>            Reporter: Artem Shutak
>              Labels: newbie
>         Attachments: HibernateCollectionRegionForIgnite.java, HibernateEntityRegionForIgnite.java,
HibernateRegionFactoryForIgnite.java, HibernateTimestampsRegionForIgnite.java
>
>
> Currently Ignite supports Hibernate 4. 
> In Hibernate 5 org.hibernate.cache.spi.RegionFactory.start() method signature has been
changed from
> {{void start(Settings var1, Properties var2) throws CacheException;}}
> on
> {{void start(SessionFactoryOptions settings, Properties properties) throws CacheException;}}
> Original user list: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-5-L2-Cache-Compatibility-td1656.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message