composite-element code completion in hbm.xml

Description

There are two issues.
1) I have the

<composite-element class="Ch06Filenames">
<property name="|"/>
</composite-element>

When i press Ctrl-Space, codecompletion listbox shows the properties of the Ch06ItemImage entity class, but i really expected to see the properties of the Ch06Filenames component Class.

See the composite_class issue.JPG screenshot in the issues.zip

2) I have inserted the new table in the DataBase (HSQLDB). Then i try to view the list of tables in the codecompletion listbox:

<idbag name="filenamesIdbag" table="|">

but i dont see the new table at all! Then i tried to refresh Hibernate configuration (clicked right button on it and pressed Refresh) and repeated the codecompletion operation but nevertheless the table is not present in the list!

See the db issue.JPG screenshot in the issues.zip

______________________
I have the following mapping:
<hibernate-mapping schema="Ch06ItemImage" package="org.hibernate.ce.auction.model.ch06">
<class name="Ch06ItemImage" table="CH06ITEM" optimistic-lock="none">
<id name="id" access="field" type="long" unsaved-value="null" column="id">
<generator class="native"/>
</id>
<version name="version" column="VERSION" access="field" generated="always" unsaved-value="null"/>
<property name="created" column="CREATED" type="calendar" update="false" not-null="true" access="field"/>
<property name="name" type="string" column="name"/>
<set name="filenames" table="CH06ITEM_SET_IMAGE" inverse="true" cascade="save-update">
<key column="ITEM_ID"/>
<one-to-many class="Ch06ItemImageSet"/>
</set>
<idbag name="filenamesIdbag" table="CH06ITEM_BAG_IMAGE">
<collection-id column="ITEM_IMAGE_ID" type="long">
<generator class="native"/>
</collection-id>
<key column="ITEM_ID"/>
<composite-element class="Ch06Filenames">
<property name="name" column=""/>
</composite-element>
</idbag>
</class>
</hibernate-mapping>

Environment

Eclipse 3.1.2

Attachments

3

Activity

Show:

Max Rydahl AndersenJune 2, 2006 at 11:17 PM

I have fixed the code compelte issue.

Please report the other issue in a seperate issue. Thanks.

Max Rydahl AndersenJune 2, 2006 at 11:17 PM

updated to reflect issue.

EugeneJune 2, 2006 at 1:58 PM

the same screeshot as in the issues.zip

EugeneJune 2, 2006 at 1:57 PM

the same screeshot as in the issues.zip

Fixed

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Eugene
Max Rydahl Andersen

Components

Fix versions

Affects versions

Priority

Created June 2, 2006 at 1:40 PM
Updated June 2, 2006 at 11:17 PM
Resolved June 2, 2006 at 11:17 PM