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 Sat, 01 Oct 2016 18:46:21 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/1/16 6:45 PM:
---------------------------------------------------------------

As a work around for Hibernate 5 compatibility issue, you can override the function of class
HibernateRegionFactory as below

class CustomHibernateRegionFactory extends HibernateRegionFactory{
@Override
	public void start(SessionFactoryOptions settings, Properties properties) throws CacheException
{
		start(new Settings(settings), properties);
	}
}

And use this class as 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

class CustomHibernateRegionFactory extends HibernateRegionFactory{
@Override
	public void start(SessionFactoryOptions settings, Properties properties) throws CacheException
{
		start(new Settings(settings), properties);
	}
}

And use this class as hibernate.cache.region.factory_class

> 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
>
> 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