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 922507 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.
EmployeeManager.java
EmployeeManager.java (text/x-java), 805 bytes, created by
Michal Haško
on 2014-07-30 11:48:32 UTC
(
hide
)
Description:
EmployeeManager.java
Filename:
MIME Type:
Creator:
Michal Haško
Created:
2014-07-30 11:48:32 UTC
Size:
805 bytes
patch
obsolete
>package org.jboss.qa.hibernate.example; > >import org.hibernate.Session; > >public class EmployeeManager { > > > public static String createEmployee(){ > > Session session = HibernateUtil.getSessionFactory().getCurrentSession(); > > session.beginTransaction(); > > Employee emp = new Employee(); > emp.setId(666); > emp.setName("Jane Doe"); > emp.setAddress("Salem, Massachusetts"); > session.save(emp); > > session.getTransaction().commit(); > > return "Employee created!"; > } > > > public static String getEmployee(){ > > Session session = HibernateUtil.getSessionFactory().getCurrentSession(); > > session.beginTransaction(); > > Employee emp = (Employee) session.get(Employee.class, 666); > > session.getTransaction().commit(); > > return emp.getName() + " from " + emp.getAddress()+"!"; > } > > >}
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