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 237603 - JPA @Convertor is not recognized while editing Entity
Summary: JPA @Convertor is not recognized while editing Entity
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
Depends on:
Reported: 2013-10-24 08:41 UTC by martin.mares
Modified: 2016-05-24 09:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

maven project with error case sample and also screenshot (82.00 KB, application/x-tar)
2013-10-24 08:41 UTC, martin.mares

Note You need to log in before you can comment on or make changes to this bug.
Description martin.mares 2013-10-24 08:41:13 UTC
Created attachment 141505 [details]
maven project with error case sample and also screenshot

I am using NetBeans 7.4. I created Maven based Java EE 7 WAR project (attached to this report). There is JPA Entity "BetaEntity", some POJO called "Alpha" and "AlphaIntConverter" annotated "@javax.persistence.Converter(autoApply=true)".

Please see line 30 in BetaEntity using netbeans. There is followed declaration:
private Alpha alpha;
And NetBeans shows red circle with exclamation mark and description: "Basic attributes can only be of the following types. ..."
And it is not true because of existing convertor for used type Alpha.

Attached tar file contains sample project and also (screenshot.png) file with the screenshot from my environment.
Comment 1 Sergey Petrov 2013-12-20 13:54:08 UTC
yes, unfortunately persistence support know nothing about converters, 
but what may be good, this warning can be disabled now, but unfortunately again with a number of other attributes related warnings at the same time. it will be separated later.
Comment 2 Petr Hejl 2016-05-24 09:54:11 UTC
Related - issue #245467.