0

use Hibernate standard methods to manage Sessions ??

asked 2013-03-21 15:33:10 +0800

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

updated 2013-03-21 15:33:10 +0800

kazma gravatar image kazma
15 3

Since Hibernate 3.6 version please use Hibernate standard methods to manage Hibernate session. what does that mean ?? can anyone give me an example on how to manage the sessions ?? since the HibernateUtil class is deprecated since version 4.0

delete flag offensive retag edit

Comments

That means do what you have to do without ZK, just use the default way.

benbai ( 2013-03-22 04:15:47 +0800 )edit

can you give me an example on how to do that plz ?

kazma ( 2013-03-22 09:29:10 +0800 )edit

i saw this link http://emrpms.blogspot.in/2013/02/mvvm-crud-with-spring-31-and-hibernate.html, and he uses the spring package in order to create the hibernate session factory...is it the only way ??

kazma ( 2013-03-22 09:43:46 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-03-25 09:14:49 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

regarding 'just use the default way', means just use hibernate in its way, like using it in pure console program without ZK. You can find some sample from their official document http://www.hibernate.org/docs

link publish delete flag offensive edit
0

answered 2013-03-25 11:36:46 +0800

kazma gravatar image kazma
15 3

thank you! i used the hibernates library to generate the session factory that what i was searching for

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-03-21 15:33:10 +0800

Seen: 13 times

Last updated: Mar 21 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More