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

Key: IDEADEV-25322
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Serge Baranov
Votes: 0
Watchers: 1
Operations

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

Erroneous Hibernate Model Inspections

Created: 16 Mar 08 19:40   Updated: 16 Mar 08 21:18
Component/s: J2EE.Hibernate, Code Analysis. Inspection
Fix Version/s: None

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

Build: 7,754
Severity: Medium


 Description  « Hide
Support feedback:

Hmm... It seems Hibernate support in IDEA 7.0.3 actually declined in quality. These errors did not happen before.

Let's say I have an a BaseEntity class mapped as @MappedSuperclass and @AccessType("property").

I see two errors:

1. It has an abstract method:
public abstract Serializable getId();

This guy is flagged with error: 'property based access must have a setter method.'. Well, it is an 'abstract' method, I probably should be excluded from this inspection.

2. I have a getter method that is marked @AccessType("field") and no setter method for it. IDEA flags it as needing a setter method. It should not do it, if Hibernate annotation @AccessType("field") is present.

Please address these issues.



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