Date: 2004-12-06T04:33:47
Editor: JohannesTextor <[EMAIL PROTECTED]>
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