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

Key: IDEA-17459
Type: Bug Bug
Status: Open Open
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: Feedback

Hibernate/JPA validator

Created: 19 Mar 08 16:04   Updated: 19 Mar 08 16:08
Component/s: J2EE.Hibernate

Build: 7,757
Severity: Medium


 Description  « Hide
Support feedback:

When you have a codeblock like this in a hibernate entity class:

private boolean verspersf;

    @Basic
    @Column(name = "VersPersF", length = 1)
    public boolean isVerspersf() {
        return verspersf;
    }

    public void setVerspersf(boolean verspersf) {
        this.verspersf = verspersf;
    }

you will see a yellow mark with an "a" left to the "isVerspersf" line, indicating the getter.

Now you change all "boolean" words to "Boolean", one by one, beginning from the top. The "a" mark will now be left to the "isVerspersf" line and also left to the "setVerspersf" line with an error mark saying that "Persistent attribute metadata should be specified on field or property getter".

When I now rename "isVerspersf" to "getVerspersf", the error still stays there.

The error can only be removed by changing the "setVerspersf" line and forcing the validator to revalidate that line this way.



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