-->
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: why are 2 beans created when building Session Factory?
PostPosted: Sun Nov 16, 2003 11:15 pm 
Regular
Regular

Joined: Tue Aug 26, 2003 6:59 pm
Posts: 89
Location: Somewhere in the Ghetto
i have a very simple mapping with just one class mapped but when this following executes,

new Configuration().configure().buildSessionFactory();

2 instances of my mapped class are created, i know this but i have a default constructor (Test.Test()) with a System.out.println("Test: "+this) and that executes and prints out, is this normal?

just seems odd to me dont know if this is intentional and i shouldnt worry about it..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 17, 2003 3:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, it is normal.


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.