Bug 389268 - Creating entities that implement java.io.Serializable
Summary: Creating entities that implement java.io.Serializable
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 7
: P3 trivial (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Project Inbox CLA
QA Contact: Petya Sabeva CLA
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2012-09-11 10:54 EDT by Petya Sabeva CLA
Modified: 2012-11-05 09:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petya Sabeva CLA 2012-09-11 10:54:03 EDT
I am speaking entirely for the JPA 1.0 specification.
It is a common practice for an entity class, to be passed as an argument to a remote business interface method. In this case, since some RMI-alike invocation is going to happen at runtime, the semantics is pass by value, and the entity class is required to implement the java.io.Serializable interface. Currently, the JPA Diagram Editor creates only entities that do not implement this interface.

Hint: there should be created the corresponding static final field serialVersionUID as well.
Comment 1 Petya Sabeva CLA 2012-11-05 09:32:50 EST
Fix is merged in the master branch with the following git commit:

https://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=20806341a3d7394a4b9261a84d42936d6dfc4db4

and was released with the tag v201211051313.