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 - @Entity classes do not have to be persistent
Summary: @Entity classes do not have to be persistent
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 19:52 UTC by alanbur
Modified: 2008-07-24 00:58 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 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".