History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-20983
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Hibernate: bugs with inner class resolving

Created: 11 Sep 07 23:24   Updated: 06 Nov 08 23:09
Component/s: J2EE.Hibernate
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Relates
This issue relates to:
IDEADEV-17349 Hibernate mapping: improve inner clas... Normal Reopened
 

Build: 7,274
Fixed in build: 7,276


 Description  « Hide
IDEADEV-17350 is fixed, but inner classes are resolved not completely correct in hibernate support. Cases:

1. If hibernate.cfg.xml has entry:
<mapping class="hn.beans.BeanBox.Location"/>
then Location entity is shown in java EE view and suggested by code completion in HQL.
But it does not work with Hibernate. Instead, if hibernate.cfg.xml has entry:
<mapping class="hn.beans.BeanBox$Location"/>
then Location is not shown and not suggested, but Hibernate works.

2. When I do Refactor / Move class to inner then hibernate.cfg.xml is updated from:
<mapping class="hn.beans.Location"/>
to:
<mapping class="hn.beans.BeanBox.Location"/>
Wrong, should be updated to:
<mapping class="hn.beans.BeanBox$Location"/>



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 17 Sep 07 17:58
7281: not yet fixed.
BeanBox.Location is highlighted as green (resolved), and the entity is shown in Java EE view: that's wrong.
BeanBox$Location is also highlighted with green and completion works, but the entity is not shown in Java EE view.
Notice, this is about configuration, not mapping file.

Alexander Chernikov - 17 Sep 07 17:59
IDEADEV-17349 is about mapping.