[
https://jira.jboss.org/browse/JBIDE-6773?page=com.atlassian.jira.plugin.s...
]
Vitali Yemialyanchyk commented on JBIDE-6773:
---------------------------------------------
Thank you for screenshots, the issue reproducable on windows also...
This bug is a result of Hibernate Console Configuration error handling improvements which
were added last time...
hibernate.cfg.xml is not created on step of Hibernate Console Configuration creation for
"New hibernate.cfg.xml wizard" ...
There are 2 way to fix this error:
1) create hibernate.cfg.xml when "Next pressed" and checkbox "Create
Console Configuration" checked - the problem here - we should delete the file when
user cancel operation or press "Back" - this is a serious drawback of this
solution;
2) do not try to build Hibernate Console Configuration in case of New Hibernate
Configuration file - so this should be configurable (try to build Console Config or not).
The drawback -> where will not be error messages in case of something wrong with
Hibernate Console Configuration here, but the user will see the error messages when he
will try to edit Console Configuration.
Ben, what did you think, which way looks better? I can't select what is better. You
point of view is a very interesting.
Create console configuration while creating a configuration file
fails
----------------------------------------------------------------------
Key: JBIDE-6773
URL:
https://jira.jboss.org/browse/JBIDE-6773
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Environment: Fedora 13, Eclipse Helios, Hibernate
Tools 3.3.0.v201007020601N-H408-M1
Reporter: Ben Clare
Assignee: Vitali Yemialyanchyk
Fix For: 3.2.0.Beta
Attachments: ConfigFileBug.png, Hib_Config_File_A.png, Hib_Config_File_B.png,
Hib_Config_File_C.png
When performing the following steps:
1. Highlight project in Project Explorer
2. Right click -> New -> Other -> Hibernate configuration file -> Next
3. Accept the defaults (file name and src folder) -> Next
4. Fill in the database details and check the "Create console configuration
file" checkbox ->Next
Result: an error message is displayed in the dialog and the file cannot be created (No
Finish button):
Could not resolve /TestConfigFile/src/hibernate.cfg.xml to a file
A screenshot is attached.
This is relevant to the nightly build version of JBoss Tools 3.2
I tested on JBDS 3.0.0.GA and this "bug?" does not present.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira