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.  [ 3 posts ] 
Author Message
 Post subject: please tell me a solution for keeping hibernate.cfg.xml file
PostPosted: Thu May 12, 2005 5:38 am 
Newbie

Joined: Thu May 12, 2005 3:31 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Dear All,

This is KalyanChakravarthy, We are working on a school project .. we are using using J2EE...We are using Eclipse 3.and Tomcat ,whne ever we are cleaning or compling the files ,hibernate.cfg.xml is getting deleted.this is causing lot of problem .. i am also giving you the path ,
C:\svn\dev\web\WEB-INF\classes\WEB-INF\classes\hibernate.cfg.xml..
is there any location to keep this file apart from this location..I want to prevent it from getting deleted every time and again..please tell me a solution...My mail id is josyulakalyon@gmail.com

Regards,
KalyanChakravarthy.Josyula

_________________
SENIOR SOFTWARE ENGINEER
SAPURA
KUALA LUMPUR
MALAYSIA


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 12, 2005 6:23 am 
Senior
Senior

Joined: Tue May 10, 2005 9:00 am
Posts: 125
Not an hibernate question ;)

don't know if you are using any j2ee enabled plugin to generate content of WEB-INF/classes but i'll recommend to compile under a target/WEB-INF/classes directory and then have your compilation process copy the content of your webapp/* directory into the target directory.

A better solution might be to use maven and it's maven:war target as it does all that automatically (you just specify the libraries you depend on, the location of classes source and the location of the rest of your webapp and it put this all together).


Top
 Profile  
 
 Post subject: it is normal
PostPosted: Thu May 12, 2005 6:31 am 
Newbie

Joined: Wed May 11, 2005 5:23 am
Posts: 4
Well when you rebuild the project the eclipse engine clear all the stuff in the destination (web-inf/classes) because it have to re-create all.
Simply put your configuration under the java sources (as you do for all java classes that needs to be compiled).

Best regards.


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