[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6617) Remove deprecation from Configuration until after new metamodel completely in place

Vladimir Nicolici (JIRA) noreply at atlassian.com
Mon Apr 2 04:32:48 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-6617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46140#comment-46140 ] 

Vladimir Nicolici commented on HHH-6617:
----------------------------------------

After further investigation, it seems the only way to configure Hibernate 4.1.1 and obtain a working SessionFactory is to use Hibernate 3 DTD based configuration files instead of the Hibernate 4 XSD configuration files, and to use the deprecated buildSessionFactory() method instead of the recommended buildSessionFactory(serviceRegistry) method.

I found this by running the annotations example from the tutorials (http://docs.jboss.org/hibernate/orm/4.1/quickstart/en-US/html_single/files/hibernate-tutorials.zip). The tutorial samples still use the deprecated method, that's why they still work.

> Remove deprecation from Configuration until after new metamodel completely in place
> -----------------------------------------------------------------------------------
>
>                 Key: HHH-6617
>                 URL: https://hibernate.onjira.com/browse/HHH-6617
>             Project: Hibernate ORM
>          Issue Type: Task
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>
> Decided to leave in place for {{Ejb3Configuration}} since JPA bootstrapping was always the recommended and supported mechanism for JPA use cases.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list