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

Key: IDEADEV-18288
Type: Usability Problem Usability Problem
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: Refactor / Rename mapped field: improve the UI

Created: 25 Jun 07 16:05   Updated: 25 Jun 07 16:05
Component/s: J2EE.Hibernate
Fix Version/s: None

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

Build: 7,036


 Description  « Hide
Basically IDEADEV-17481 is fixed, but one case seems to be still not very reasonable.
Get an entity class with a property (field, getter, setter). Provide mapping (tested .hbm.xml) to field, not property (set access="field").
Refactor / rename field in java source. Get question: "Do you want to rename persistent attribute instead?"
On Yes answer: both field in source and reference in .hbm.xml are changed.
On No answer: only field in source is renamed, .hbm.xml contains error.
This difference seems to be useless. Probably the question should not be shown and both files should always be updated.

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