[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1873) Query the hibernate version through the API

Ben Groeneveld (JIRA) noreply at atlassian.com
Tue Apr 21 13:47:18 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32964#action_32964 ] 

Ben Groeneveld commented on HHH-1873:
-------------------------------------

This is not sufficient; a method to obtain version is required.  The public static final org.hibernate.cfg.Environment.VERSION is a compile-time constant and will be inlined into your class during compilation and cannot be used to adequately test for the Hibernate version being used at runtime.  Please provide a method in the Environment class to access the Hibernate version at runtime.

> Query the hibernate version through the API
> -------------------------------------------
>
>                 Key: HHH-1873
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1873
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: core
>            Reporter: Mark Grand
>            Priority: Minor
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> I am building a tool that will work with hibernate. Though this tool will be used with hibernate, I want it to work with whatever version of hibernate my users select. Making this work with future versions of hibernate will be eaiser if there is something in the API that says what the version of hibernate is.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list