-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: I created the Mappings and Configuration XML's and POJO's us
PostPosted: Tue May 30, 2006 3:28 am 
Newbie

Joined: Tue May 23, 2006 1:34 am
Posts: 19
Location: Bangalore
I created the Mappings,Configuration XML's and POJO's using the Hibernate Tool. But when i'm persisting an object, it is Showing
"Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!"
This is when creating the SessionFactory. I don't know why it is?
Can any one help's me?
Any suggestions is appreciated.
Thanks in advance.........

_________________
Thanks and Regards,
Suresh Setty...


Top
 Profile  
 
 Post subject: Its working now...
PostPosted: Tue May 30, 2006 5:33 am 
Newbie

Joined: Tue May 23, 2006 1:34 am
Posts: 19
Location: Bangalore
I just added the following code snippet to the Configuration file and now its working.

<property name="current_session_context_class">thread</property>

_________________
Thanks and Regards,
Suresh Setty...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.