Today,I was studied about hibernate many to many attribute konwlege.I get many error I share.
The frist one,it said that Ukkone servie requested.
Exception in thread "main" org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.cache.spi.RegionFactory]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:184)
at org.hibernate.cfg.Settings.getRegionFactory(Settings.java:300)
at org.hibernate.internal.SessionFactoryImpl$SessionBuilderImpl.openSession(SessionFactoryImpl.java:1327)
at org.hibernate.internal.SessionFactoryImpl.openSession(SessionFactoryImpl.java:682)
at com.sss.hibernateUtils.hibernateUtils.getSession(hibernateUtils.java:19)
at com.sss.hibernatetest.hibernate_many_to_many.addTest(hibernate_many_to_many.java:13)
at com.sss.hibernatetest.Test.main(Test.java:33)
I quickly open browser of baidu.But,my domestic net didn’t found solved way.Finally,it is a simple problem I see that entity name of id should exchange,role and user thier owener id would writing clearly.