-->
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: can we configure using .cfg.xml and user supplied info
PostPosted: Thu Feb 26, 2009 12:36 pm 
Newbie

Joined: Tue May 31, 2005 7:50 am
Posts: 7
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.6

Hello, can you tell me if it's possible to configure hibernate using a combination of hibernate.cfg.xml and user supplied run-time information e.g. user names and passwords?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2009 2:42 pm 
Senior
Senior

Joined: Tue Aug 01, 2006 9:24 pm
Posts: 120
Someone else might be able to point you to a more exact answer, but I believe you can. In my case I am using annotations so I would do it through the

AnnotationConfiguration

http://www.hibernate.org/hib_docs/annot ... ation.html

I am not sure what it is with xml mappings but I am sure it's a similarly named object.

You probably have to recreate the session when you do this though.

_________________
Please rate my replies as I need points for all of my questions also.


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.