cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: CocoonAndHibernateTutorial
Date Mon, 06 Dec 2004 12:33:47 GMT
   Date: 2004-12-06T04:33:47
   Editor: JohannesTextor <jc.textor@gmx.de>
   Wiki: Cocoon Wiki
   Page: CocoonAndHibernateTutorial
   URL: http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -184,20 +184,20 @@
         try {
               cfg = new net.sf.hibernate.cfg.Configuration();
 
-              /* ***** ADD PERSISTENT CLASSES, VARIANT 1 *****
-	      // persistent classes can be added here using 
+              /* ***** ADD PERSISTENT CLASSES, VARIANT 1 ***** */
+              // persistent classes can be added here using 
 
               // cfg.addClass(org.test.myClass.class); 
 
               // Make sure the corresponding .class and .hbm.xml files are located in 
               // (the same directory of) your classpath (e.g. WEB-INF/classes) 
-              sf = cfg.buildSessionFactory()
+              sf = cfg.buildSessionFactory();
 
-              /* ***** ADD PERSISTENT CLASSES, VARIANT 2 *****
+              /* ***** ADD PERSISTENT CLASSES, VARIANT 2 ***** */
 	      // alternatively, you might be using a hibernate.cfg.xml file to load mappings,
               // then use the following line instead: 
 
-              // sf = cfg.configure().buildSessionFactory;
+              // sf = cfg.configure().buildSessionFactory();
 
               // no additional cfg.addClass(...) statements needed, since you can define
               // mappings in the XML config file 

Mime
View raw message