-->
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.  [ 6 posts ] 
Author Message
 Post subject: Programmaticly create mapping on runtime
PostPosted: Fri Oct 31, 2003 6:47 am 
Newbie

Joined: Fri Oct 31, 2003 6:42 am
Posts: 7
Location: Germany
Hi,

I would like to embed Hibernate into an other framework. Therefore I would need to configure Hibernate completly on runtime via the other framework. I found the possibility to create the "basic" configuration via properties directly inside some java classes.

Now my question: How can I use mapping without the creation of mapping (.hbm.xml) files ?

This is important, because I want to have only 1 central configuration repository and not to create several configuration files in the project.

If there are any possibilities or ideas please help.

Thanx


Jan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 8:36 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
configuration.configure(org.w3c.dom.Document)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 10:26 am 
Newbie

Joined: Fri Oct 31, 2003 6:42 am
Posts: 7
Location: Germany
Is it used often in other projects ? Did you or anyone has experiences with that way of using Hibernate ?

Thanx


Jan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 10:50 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 10:52 am 
Newbie

Joined: Fri Oct 31, 2003 6:42 am
Posts: 7
Location: Germany
epbernard wrote:
configuration.configure(org.w3c.dom.Document)


I checked the DTD and found that this is only for the "general" configuration. I will need to create the mappings on-the-fly in my java application.

How is this possible ? Is it done via "public Configuration addDocument(org.w3c.dom.Document doc)" ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 11:19 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes

_________________
Emmanuel


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