1 Reply Latest reply on Jun 12, 2014 5:19 PM by maxandersen

    whatever happened to the hibernate forum?

    jbossgg

      Update: 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.

        • 1. Re: whatever happened to the hibernate forum?
          maxandersen

          I fixed your posting to mark your code as actual code and then add actual line breaks. Then it shows up.

           

          Hibernate forum is a community forum and maintained by the community and yes, it is so popular it gets attacked too much.

           

          If you found a bug in code or docs its best to use hibernate jira tracker at http://hibernate.atlassian.net/

          If you want guaranteed responses and support best to buy support.

           

          With respect to the code then I dont see where there is  a mistake since it compiles for me.

           

           

          What is the actual error you are getting ?