-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to find Hibernate version?
PostPosted: Tue Mar 09, 2010 5:25 pm 
Newbie

Joined: Tue Mar 09, 2010 5:17 pm
Posts: 3
Is there a way to find out what version of Hibernate I am using from hibernate3.jar? Picked up a project from another employee left a while back who didn't document what version of Hibernate he had installed. Now I need to upgrade hibernate; in order for smooth upgrade, I would love to know what version I am upgrading from.


Top
 Profile  
 
 Post subject: Re: How to find Hibernate version?
PostPosted: Tue Mar 09, 2010 5:53 pm 
Regular
Regular

Joined: Thu May 07, 2009 5:56 am
Posts: 94
Location: Toulouse, France
you can activate Hibernate logging options with INFO level. INFO shows version in use on startup.
log4j.logger.org.hibernate=INFO

have you taken a look at META-INF in hibernate3.jar?

_________________
everything should be made as simple as possible, but not simpler (AE)


Top
 Profile  
 
 Post subject: Re: How to find Hibernate version?
PostPosted: Tue Mar 09, 2010 8:01 pm 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
You also can print like this
Code:
System.out.println(org.hibernate.Version.getVersionString());


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.