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

Summary: JPA @Convertor is not recognized while editing Entity
Product: javaee Reporter: martin.mares
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: maven project with error case sample and also screenshot

Description martin.mares 2013-10-24 08:41:13 UTC
Created attachment 141505 [details]
maven project with error case sample and also screenshot

Hello,
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.