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 255476 - Warning on a temporal field
Summary: Warning on a temporal field
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-22 08:50 UTC by clogs
Modified: 2015-09-22 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clogs 2015-09-22 08:50:31 UTC
I have a JPA entity which has a date attribute. The data in the datastore is such that I had to apply a converter on the date field. The editor shows that the attribute needs to be annotated with @Temporal, which is not correct because of the @Convert.

    @Column(name = "LVCDT")
    @Convert(converter = ISeriesDateConverter.class)
    private Date lvcdt;

The warning states: "A temporal attribute must be marked with the @Temporal annotation"