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 115181

Summary: @Entity classes do not have to be persistent
Product: javaee Reporter: alanbur <alanbur>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description alanbur 2007-09-10 19:52:13 UTC
If I remove 'implements Serializable' from a JPA entity class, I get a message in the error stripe saying 'An entity or
IdClass should implement the Serializable interface'  That is incorrect - an entity class doesn't have to be Serializable.
Comment 1 Tomasz Slota 2007-09-11 06:59:47 UTC
This message should be a suggestion to  follow best practices and implement Serializable so that the Entity class can be used as a data transfer object. We 
should probably change wording (possibly also in other warning messages) to make it clear
Comment 2 Dongmei Cao 2008-07-24 00:58:32 UTC
As commented by tslota, it is a warning/suggestion message telling you "should", not "must" or "have to".