[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-662?page=co...
]
Dmitry Geraskov commented on HBX-662:
-------------------------------------
Mark, I tried to do the same things you spoke about.
1) Create 2 projects: consoleProject, classesProject.
2) in classesProject create class mapping\A.java and mapping\A.hbm.xml (with mapping)
3) for classesProject : Project Properties->"Java Build
Path"->"Default output folder"->"Browse"->"Create
new folder"->"Advanced"
4) type d:\temp and press OK while Properties wizard not closed.
=> if project not builded automatically build it
=> observe that mapping\A.java and mapping\A.hbm.xml in "d:\temp" folder.
(I didn't see nothing there at first time and repeated step 2 and 3 with other folder
names.)
5) for consoleProject: create new Console Configuration
"configForConsoleProject"
6) add your DB driver to classpath
7) add <mapping resource ="mapping\A.hbm.xml"> to hibernate.cfg.xml (or as
mapping when create console configuration)
8) edit "configForConsoleProject": ->Classpath->Advanced-> 'add
external folder" and add "d:\temp " to classpath.
9) rebuild "configForConsoleProject"
==> now it should work without mapping exception.
BTW I didn't understand why you have error there, so please answer if you still have
it.
Dmitry.
Classes in linked folders are not found
---------------------------------------
Key: HBX-662
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-662
Project: Hibernate Tools
Issue Type: Bug
Components: eclipse
Affects Versions: 3.1.beta5
Environment: Eclipse 3.1.1, JDK 1.4
Reporter: Mark
Priority: Minor
Fix For: 3.2.1
"Hibernate Configurations" widget shows class not found for classes that are
linked to an external directory.
By External directory I mean a directory that is set as build location by using the
"Link to folder in the file system" under Project Properties->"Java
Build Path"->"Default output
folder"->"Browse"->"Create new
folder"->"Advanced"
I can pick this path in the "Hibernate Console Configuration"->"Add
JAR/Dir", but the class is not picked up.
When I move the build directory to a directory that is physically located inside the
Eclipse project tree it works.
MARK
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira