[
https://hibernate.onjira.com/browse/HHH-6617?page=com.atlassian.jira.plug...
]
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/file...).
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