-->
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.  [ 2 posts ] 
Author Message
 Post subject: Annotations Reference doc issue
PostPosted: Fri Jul 27, 2007 8:55 pm 
Newbie

Joined: Fri Jul 27, 2007 8:40 pm
Posts: 1
Location: Frankfurt, germany
I followed Chapter 1 of the Hibernate Annotations Reference but couldn't get Hibernate to recognize my hibernate.cfg.xml . As a Hibernate novice, it took me a long time of poking around to realize that the example code given in Section 1.2
Quote:
sessionFactory = new AnnotationConfiguration().buildSessionFactory();

should call the configure() method, as follows:
Quote:
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();

This fixed my problem. Perhaps a doc change could help others avoid the same problem.

Great work otherwise, keep it up!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 3:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Good catch http://opensource.atlassian.com/projects/hibernate/browse/ANN-643. This is fixed.

_________________
Emmanuel


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