-->
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: SessionFactory without JNDI by reverse engineering a db
PostPosted: Mon Mar 19, 2012 12:22 pm 
Newbie

Joined: Tue Nov 08, 2011 4:04 am
Posts: 4
Hi all, first of all congratulations about the community.
I have one quick question to ask. Is there a way to use the Hibernate tools of Eclipse to reverse engineer a database and then use the generated classes and DAO's to retrieve data from the DB without using JNDI?
All files generated, have the
Code:
return (SessionFactory) new InitialContext().lookup("SessionFactory");

code autogenerated, however i would like to keep the DAO code intact and for the sake of testing, use the code without a JNDI

Thanks for considering my question.


Top
 Profile  
 
 Post subject: Re: SessionFactory without JNDI by reverse engineering a db
PostPosted: Thu Mar 22, 2012 5:40 am 
Newbie

Joined: Tue Nov 08, 2011 4:04 am
Posts: 4
Bump?


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.