When I click "rebuild project", Eclipse deletes the *.hbm.xml files which are inside the bin folder. I think it deletes everything which is not a *.class file.
Thats a problem because I need the *.hbm.xml files in this folder.
To preven the problem I could use something like:
Code:
Configuration cfg = new Configuration()
.addFile("Vertex.hbm.xml")
.addFile("Edge.hbm.xml");
But this is not so maintainable and secure like
Code:
Configuration cfg = new Configuration()
.addClass(eg.Vertex.class)
.addClass(eg.Edge.class);
So what can I do if Eclipse deletes all my *.hbm.xml files? How can I prevent this?
Its not really a Hibernate question, I know... But maybe there are Eclipse users here who know how to solve this problem.