whatever happened to the hibernate forum?
jbossgg Jun 12, 2014 5:13 PMUpdate: can someone fix this forum so it can display source code correctly? I copy and paste code and it turned all jumbled together.
I believe Jboss bought Hibernate, and redhat bought jboss? This is this the only forum in the jboss community where I found the keyword hibernate that's closest, so I'm posting my hibernate question here, otherwise, can someone start a new forum specific to hibernate or fix the broken one (see below)? I'm new to learning hibernate and I've been running into tons of issue, neverthless, does anyone know who is responsible for the original hibernate forum as it's obviously getting trashed and attacked here: https://forum.hibernate.org/viewforum.php?f=1 I'm trying to follow along here: http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html_single/#tutorial-firstapp-helpers but it appears the author of the code didn't even care to compile the code, is the below missing " return sessionFactory;" at the end of the buildSessionFactor()?
package org.hibernate.tutorial.util; import org.hibernate.SessionFactory; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.cfg.Configuration; public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); private static SessionFactory buildSessionFactory() { try { // Create the SessionFactory from hibernate.cfg.xml new Configuration().configure().buildSessionFactory( new StandardServiceRegistryBuilder().build() ); } catch (Throwable ex) { // Make sure you log the exception, as it might be swallowed System.err.println("Initial SessionFactory creation failed." + ex); throw new ExceptionInInitializerError(ex); } } public static SessionFactory getSessionFactory() { return sessionFactory; } }
Will someone be updating the tutorial where the bugs are ironed out? It's majorly frustrating, and I'm not the only person who has experienced this type of frustration! see here: https://forum.hibernate.org/viewtopic.php?f=1&t=998479 G.