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

Summary: [73cat] JPA warning on false line
Product: javaee Reporter: muellermi <muellermi>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.