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

Key: IDEADEV-17437
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

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

Hibernate mapping: a warning for cases when name value does not match existing column could be provided

Created: 31 May 07 21:42   Updated: 31 May 07 21:42
Component/s: J2EE.Hibernate
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,990


 Description  « Hide
In hibernate mapping (*.hbm.xml) the "name" attribute of several elements is mapped to same-named column by default. E.g. if we have an entry:
<id name="id" access="property">

Hibernate assumes that it is mapped to "ID" column in the database table.
Since IDEA knows what columns exist in database the cases when a table has no matching column may be highlighted with warning. It even could have a quick fix: insert "column" attribute.

Elements with such attributes:

  • class/id
  • class/property
  • class/composite-id/key-property
    ...


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