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: Mapping File Load and XDoclet/Annotation Question
PostPosted: Wed Mar 23, 2005 12:43 pm 
Regular
Regular

Joined: Tue Nov 30, 2004 4:23 pm
Posts: 62
I am doing a brown bag today on Hibernate and I am trying to get a few quick questions answered.

1) When are mapping files loaded? I believe it can be on server startup. 2) Are the mapping files stored in memory for retrieval of mapping information when the application makes requests to Hibernate?
3) When using XDoclet or Annotations to generate the mapping files. How do you represent this in the hibernate.cfg.xml for the "mapping resource", I know this is where you can directly list all the mapping files you use? But XDoclet/Annotations are generating these files during the build process. Will Hibernate just look in the classpath for all mapping files to load or do you have to actually specifically tell Hibernate where to load mapping files from?

Thanks,

-jay


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 9:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
1) The mapping data is read and a configuration object populated at the time the session factory is built. Mapping files are read once the meta data is contained in the configuration object which is normally thrown away.

2) (a)XDoclet is an external process that generates the mapping files for you rather than you create them yourself.
(b)Annotations are embedded and are read and processed when session factory is built. See annotation examples for how this is done.


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.