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

Key: IDEADEV-22684
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Serge Baranov
Votes: 0
Watchers: 0
Operations

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

Good code is red: Hibernate component mapping

Created: 16 Oct 07 19:03   Updated: 06 Dec 07 18:51
Component/s: J2EE.Hibernate
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-15846 (IDEA-7) Cannot resolve attribute of ... Closed

Build: 7,361
Fixed in build: 7,507
Severity: Medium


 Description  « Hide
Support feedback:

I found that IntelliJ 7.0 highlights a valid hibernate "component" mapping as an error:

<hibernate-mapping>
     <class name="com.some.package.MyClass" schema="schemaname" table="mytable">
         <id name="id" column="`ID`" type="long" unsaved-value="null">
             <generator class="assigned"/>
         </id>

         <discriminator column="`TYPE`" type="string" force="false"/>

         <version name="version" column="`VERSION`" type="long"/>

         <property name="MyNumber" column="`NUM`" type="string" length="50"/>
         <property name="memo" column="`MEMO`" type="text"/>
         <property name="signature" column="`SIGN`" type="string" length="50"/>
         <property name="created" column="`CREATED`" type="timestamp" not-null="true" update="false"/>
         <property name="updated" column="`UPDATED`" type="timestamp" insert="false"/>

         <component name="itinerary">
            <property name="origin" column="`ORIG`" type="text"/>
            <property name="destination" column="`DEST`" type="text"/>
         </component>
....
</class>
</hibernate-mapping>

the following section in a hibernate mapping:

<component name="itinerary">
    <property name="origin" column="`ORIG`" type="text"/>
    <property name="destination" column="`DEST`" type="text"/>
</component>

shows "itinerary" in red as well as "origin" and "destination"

The mapping is valid and works as designed, however IntelliJ reports: "Cannot resolve Attribute itinerary.."



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.