-->
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.  [ 7 posts ] 
Author Message
 Post subject: Determining Hibernate Version from Jar
PostPosted: Wed Aug 18, 2004 5:46 pm 
Newbie

Joined: Fri Oct 31, 2003 3:14 pm
Posts: 12
Location: New York, NY
I haven't been able to find an answer to this question.

Since hibernate just releases a hibernate2.jar, how can I go about, by just looking at the jar, which version it is in the 2.x.y line? I guess I could load it and turn on debug...but that seems like a bit of a pain.

Thanks,
Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2004 7:52 pm 
Regular
Regular

Joined: Mon Feb 23, 2004 10:42 pm
Posts: 102
Location: Washington DC
You should check the JIRA issues for anything, and if not then post a feature request.

_________________
Matt Veitas


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 21, 2004 3:03 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please don't. Look at net.sf.hibernate.Environment.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: Re: Determining Hibernate Version from Jar
PostPosted: Sat Aug 21, 2004 5:38 am 
Regular
Regular

Joined: Mon Feb 23, 2004 10:42 pm
Posts: 102
Location: Washington DC
pburleson wrote:
Since hibernate just releases a hibernate2.jar, how can I go about, by just looking at the jar, which version it is in the 2.x.y line? I guess I could load it and turn on debug...but that seems like a bit of a pain.


I think what he is trying to get at is that there is no way from the hibernate.jar file to determine the version given only the binary. I agree that there should be a way to get the version number by looking at the manifest file.

_________________
Matt Veitas


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 3:41 pm 
Newbie

Joined: Fri Oct 31, 2003 3:14 pm
Posts: 12
Location: New York, NY
christian wrote:
Please don't. Look at net.sf.hibernate.Environment.


That would be great if I wanted to code up something and print out the version...hell I can get that by just loading up Hibernate and turning on some basic logging.

It would be nice, without having to write any code, to be able to tell exactly what version of hibernate I have sitting in front of me. Sure, the jar is called Hibernate2.jar, but there are a lot of versions of Hibernate2.

I don't necessarily know of the cleanest way to do this, but maybe a manifest entry, or have the build make the jar name Hibernate-full-version-info.jar . I'm sure that would upset others as well who are used to just dropping in the latest Hibernate2.jar and overwritting what was there. Surely there's a way to get this info in there.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 4:49 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
We will make some changes to the build process, but this is not totally trivial right now.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 5:11 pm 
Newbie

Joined: Fri Oct 31, 2003 3:14 pm
Posts: 12
Location: New York, NY
christian wrote:
We will make some changes to the build process, but this is not totally trivial right now.


Totally understand if this didn't even make it into Hibernate until 3.0...it would certainly be undependable in the 2.x line since it won't exist in every version. Just saying it would be a nice consideration. Thanks for considering it and hopefully it will come as a part of 3.0.

Patrick


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