]
Steve Ebersole closed HBX-313.
------------------------------
Closing stale resolved issues
hibernate tools stuck when retrieving data from database after
adding/removing mapping properties
-------------------------------------------------------------------------------------------------
Key: HBX-313
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-313
Project: Hibernate Tools
Issue Type: Bug
Affects Versions: 3.0alpha4
Environment: eclipse 3.1RC3 (plain install, no other plugin than hibernate tools
alpha4a), database: CA Ingres 2.6, jdk1.5update3
Reporter: Patrik Meisinger
Fix For: 3.1alpha5
there's a problem when adding/removing mapping properties to the mapping file
(sometable.hbm.xml).
the hibernate tools stuck when i do the following steps:
(i assume that a java project and a java-file representing a table in the db exists in
eclipse)
1. create a hibernate-configuration file using the hibernate-tools-wizard (right click on
the eclipse project->new->other->hibernate config file)
2. create a hibernate-mapping-file for out of an empty xml-file (eclipse:
file->new->file somefile.hbm.xml)
3. add some properties and an id to the mapping file (save the file)
4. create a hibernate console configuratin using the hibernate-tools-wizard (right click
on the eclipse project->new->other->hibernate console config) with the following
data: name is the eclipse project name and classpath with jdbc-driver from ingres and the
bin-folder of the project (exact in this order)
5. switch to hibernate console perspective
6. right click on console config->create session factory
7. expand "mapped entities"
8. double click on the mapped entity to retrieve data from the database
9. data is now shown in the "query result" view from the hibernate perspective
10. right click on console config->close session factory
11. switch back to java perspective and add or remove a property in the
somefile.hbm.xml-mapping-file
12. switch back to hibernate console perspective
13. right click on console config->create session factory
14. expand "mapped entities"
15. double click on the mapped entity to retrieve data from the database. STUCK. you
never get a result from the database because something causes eclipse/hibernate-plugin to
stuck.
the problem is reproduceable with the steps above: 5 tries out of 5 (even more)
the problem occurs in eclipse 3.1RC2, too.
possible workaround: restarting eclipse after editing the properties, but this is not
satisfying.
another problem in this relation is to add a <one-to-one>-mapping instead of
adding/removing a property (i haven't tried <one-to-many> at this time). same
steps as above except step 11. step 11 in this case is "switch back to java
perspective and add a <one-to-one> mapping in the somefile.hbm.xml-mapping-file.
the problem is reproduceable with the steps above: 5 tries out of 5 (even more)
the problem occurs in eclipse 3.1RC2, too.
possible workaround: none known.
regards
patrik
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: