This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153969 - hibernate-mapping's package ignored when linking class names to source
Summary: hibernate-mapping's package ignored when linking class names to source
Status: RESOLVED DUPLICATE of bug 153968
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 21:01 UTC by malfunction84
Modified: 2009-02-19 23:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malfunction84 2008-11-26 21:01:08 UTC
If my mapping file has the following...

<hibernate-mapping>
  <class name="my.package.pojo.User" table="users">
    <!-- SNIP -->
  </class>
</hibernate-mapping>

...and I Ctrl+click on the "my.package.pojo.User" value, it will link to the source for that class.  However, if my
mapping file has the following...

<hibernate-mapping package="my.package.pojo">
  <class name="User" table="users">
    <!-- SNIP -->
  </class>
</hibernate-mapping>

...and I Ctrl+click on the "User" value, it link to the "User" class in the default package, which doesn't exist.  It
should link to my.package.pojo.User, as in the first example.
Comment 1 Vadiraj Deshpande 2008-11-27 18:30:53 UTC
Clear duplicate.

*** This issue has been marked as a duplicate of 153968 ***
Comment 2 malfunction84 2008-12-11 19:51:48 UTC
One is for refactoring class names, and the other is for linking the text when you Ctrl+click a class name.  Sorry, I
wasn't aware that these two features are related.