-->
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.  [ 4 posts ] 
Author Message
 Post subject: newbie asking for help bout setting up the environment!
PostPosted: Thu Apr 06, 2006 9:12 pm 
Newbie

Joined: Sat Mar 18, 2006 1:27 am
Posts: 15
i wanna make hiber to run in an environment of tomcat + struts + mysql. the Manuel is really confusing. can anyone explain?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 12:14 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Put hibernate3.jar in WEB_INF/lib, and hibernate.cfg.xml or hibernate.properties in WEB_INF/src (and therefore in WEB_INF/classes). This is the default setup: you can put your properties and/or .cfg.xml file anywhere, if you specify the path when configuring your session factory.

See the ref docs for filling out your .cfg.xml or .properties file.

That's the extent of your environment. Everything else is done in java code.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 1:42 am 
Newbie

Joined: Sat Mar 18, 2006 1:27 am
Posts: 15
can u give me an example code of how to access the database? since the docs uses something like hibernateUtil and some listener, i really got not idea how. i tried a couple of times and defeated hehe

tenwit wrote:
Put hibernate3.jar in WEB_INF/lib, and hibernate.cfg.xml or hibernate.properties in WEB_INF/src (and therefore in WEB_INF/classes). This is the default setup: you can put your properties and/or .cfg.xml file anywhere, if you specify the path when configuring your session factory.

See the ref docs for filling out your .cfg.xml or .properties file.

That's the extent of your environment. Everything else is done in java code.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 5:30 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
It's all in section 1.2 of the ref docs.


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