-->
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: Accessing username in hbm.xml files
PostPosted: Thu Jan 19, 2006 7:23 am 
Newbie

Joined: Wed Nov 23, 2005 7:29 am
Posts: 7
hi

I have a requirement to access username property provided in jdbc.propertis or hibernate.cfg while mapping a class in it's hbm.xml.

Can anybody give me the solution for the above one.

Thanks in advance.

Rajendra


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:27 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
configuration.getProperty(Environment.USER);

configuration reference remember and grab from your HibernateUtil


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.