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.  [ 1 post ] 
Author Message
 Post subject: Java- Using hmb files from C:/files so i can edit them later
PostPosted: Wed Jul 01, 2009 11:05 am 
Newbie

Joined: Wed Jul 01, 2009 10:56 am
Posts: 7
Hello, i want to use my Libro.hmb.xml file from the folder C:/Files from outside the .jar file, so if the table/attributes name changes in a future, i wont need to recompile the application, just edit the .xml file.

Is there anyway to do it? ive tried with the <mapping resource="C:/files/libro.xmb.xml"/>, or with addResource(new File(...)), everything with same result, no file found. I've also tried placing C:/file/hibernate.cfg.xml and using configuration.configure("C/..."), but it wont load the libro.xmb.xml anyways.

Is there anyway to do it (without "zipping" the xml files as ANOTHER jar)? thank you.


nvm solved, making a folder inside the project and not including it in the .jar works, thnks anyways :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.