This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224351 - [73cat] JPA warning on false line
Summary: [73cat] JPA warning on false line
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-01 16:52 UTC by muellermi
Modified: 2013-01-08 18:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-01-01 16:52:20 UTC
Product Version = NetBeans IDE Dev (Build 201212220001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_10
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04

Given an a class annotated with @Entity and this mapping:

    @Column(name = "value")
    private Integer value;

NetBeans denotes the second line as warning (value is a reserved SQL keyword). This might be confusing to the user. The proble is the name = "value" of the first line. Thus, NetBeans should denote the first line.
Comment 1 muellermi 2013-01-01 16:54:48 UTC
To cross-check, you may replace the second line:

    @Column(name = "value")
    private Integer myValue;

NetBeans still denotes the second line with "value is a reserved...."
Comment 2 Milutin Kristofic 2013-01-07 15:09:25 UTC
Doesn't this belong to javaee persistance team?
Comment 3 Sergey Petrov 2013-01-08 18:53:41 UTC
unfortunately it's expected behavior, it's somewhere on my wish list also to support better warnings in more precise place, but can't be handled as an issue in my opinion.