Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 922508 Details for
Bug 1124812
hibernate c3p0 regression in CR2
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
HibernateUtil.java
HibernateUtil.java (text/x-java), 1.01 KB, created by
Michal Haško
on 2014-07-30 11:48:54 UTC
(
hide
)
Description:
HibernateUtil.java
Filename:
MIME Type:
Creator:
Michal Haško
Created:
2014-07-30 11:48:54 UTC
Size:
1.01 KB
patch
obsolete
>package org.jboss.qa.hibernate.example; > >import org.hibernate.SessionFactory; >import org.hibernate.cfg.Configuration; >import org.hibernate.service.ServiceRegistry; >import org.hibernate.service.ServiceRegistryBuilder; > >public class HibernateUtil { > > private static final SessionFactory sessionFactory = buildSessionFactory(); > private static ServiceRegistry serviceRegistry; > > > private static SessionFactory buildSessionFactory() { > try { > > Configuration configuration = new Configuration().configure(); > serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry(); > > return configuration.buildSessionFactory(serviceRegistry); > > } > catch (Throwable ex) { > > System.err.println("Initial SessionFactory creation failed." + ex); > throw new ExceptionInInitializerError(ex); > } > } > > public static SessionFactory getSessionFactory() { > return sessionFactory; > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1124812
:
922506
|
922507
| 922508 |
922877