Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 f279b44da -> 13b2736f8


fixed hibernate examples


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/13b2736f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/13b2736f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/13b2736f

Branch: refs/heads/ignite-45
Commit: 13b2736f83b6a6e7d7c9a2f3a328fa97ae4ec02c
Parents: f279b44
Author: Yakov Zhdanov <[email protected]>
Authored: Sat Mar 21 16:23:53 2015 +0300
Committer: Yakov Zhdanov <[email protected]>
Committed: Sat Mar 21 16:23:53 2015 +0300

----------------------------------------------------------------------
 examples/config/hibernate/example-hibernate-L2-cache.xml  | 10 +++++-----
 .../hibernate/HibernateL2CacheExampleNodeStartup.java     |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/13b2736f/examples/config/hibernate/example-hibernate-L2-cache.xml
----------------------------------------------------------------------
diff --git a/examples/config/hibernate/example-hibernate-L2-cache.xml 
b/examples/config/hibernate/example-hibernate-L2-cache.xml
index 324c040..8966236 100644
--- a/examples/config/hibernate/example-hibernate-L2-cache.xml
+++ b/examples/config/hibernate/example-hibernate-L2-cache.xml
@@ -56,12 +56,12 @@
         <property 
name="org.apache.ignite.hibernate.default_access_type">READ_ONLY</property>
 
         <!-- Specify the entity classes for mapping. -->
-        <mapping class="org.apache.ignite.examples.datagrid.hibernate.User"/>
-        <mapping class="org.apache.ignite.examples.datagrid.hibernate.Post"/>
+        <mapping 
class="org.apache.ignite.examples.java7.datagrid.hibernate.User"/>
+        <mapping 
class="org.apache.ignite.examples.java7.datagrid.hibernate.Post"/>
 
         <!-- Per-class L2 cache settings. -->
-        <class-cache 
class="org.apache.ignite.examples.datagrid.hibernate.User" usage="read-only"/>
-        <class-cache 
class="org.apache.ignite.examples.datagrid.hibernate.Post" usage="read-only"/>
-        <collection-cache 
collection="org.apache.ignite.examples.datagrid.hibernate.User.posts" 
usage="read-only"/>
+        <class-cache 
class="org.apache.ignite.examples.java7.datagrid.hibernate.User" 
usage="read-only"/>
+        <class-cache 
class="org.apache.ignite.examples.java7.datagrid.hibernate.Post" 
usage="read-only"/>
+        <collection-cache 
collection="org.apache.ignite.examples.java7.datagrid.hibernate.User.posts" 
usage="read-only"/>
     </session-factory>
 </hibernate-configuration>

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/13b2736f/examples/src/main/java/org/apache/ignite/examples/java7/datagrid/hibernate/HibernateL2CacheExampleNodeStartup.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/java7/datagrid/hibernate/HibernateL2CacheExampleNodeStartup.java
 
b/examples/src/main/java/org/apache/ignite/examples/java7/datagrid/hibernate/HibernateL2CacheExampleNodeStartup.java
index cf9b67c..49734ba 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/java7/datagrid/hibernate/HibernateL2CacheExampleNodeStartup.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/java7/datagrid/hibernate/HibernateL2CacheExampleNodeStartup.java
@@ -69,9 +69,9 @@ public class HibernateL2CacheExampleNodeStartup {
         cfg.setCacheConfiguration(
             
cacheConfiguration("org.hibernate.cache.spi.UpdateTimestampsCache", ATOMIC),
             
cacheConfiguration("org.hibernate.cache.internal.StandardQueryCache", ATOMIC),
-            
cacheConfiguration("org.apache.ignite.examples.datagrid.hibernate.User", 
TRANSACTIONAL),
-            
cacheConfiguration("org.apache.ignite.examples.datagrid.hibernate.User.posts", 
TRANSACTIONAL),
-            
cacheConfiguration("org.apache.ignite.examples.datagrid.hibernate.Post", 
TRANSACTIONAL)
+            
cacheConfiguration("org.apache.ignite.examples.java7.datagrid.hibernate.User", 
TRANSACTIONAL),
+            
cacheConfiguration("org.apache.ignite.examples.java7.datagrid.hibernate.User.posts",
 TRANSACTIONAL),
+            
cacheConfiguration("org.apache.ignite.examples.java7.datagrid.hibernate.Post", 
TRANSACTIONAL)
         );
 
         return cfg;

Reply via email to