Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335672

Summary: Collection attributes should not be initialized
Product: [WebTools] Dali JPA Tools Reporter: Stefan Dimov <stefan.dimov>
Component: Diagram EditorAssignee: Project Inbox <dali.diagrameditor-inbox>
Status: RESOLVED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: trivial    
Priority: P3 CC: petya.sabeva
Version: 3.0   
Target Milestone: 3.0 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

Description Stefan Dimov CLA 2011-01-28 05:20:42 EST
A long time ago we've implemented (the creation of relations between) the entities with initializing the attributes like this:

@ManyToMany(mappedBy = "entity6")
private List<Entity5> entity5 = new ArrayList<Entity5>();

or:

@ManyToMany
private Set<Entity8> entity8 = new HashSet<Entity8>();

Maybe we should leave the relation attributes initialization to the user.
Comment 1 Petya Sabeva CLA 2011-04-19 07:47:04 EDT
Created attachment 193570 [details]
patch
Comment 2 Petya Sabeva CLA 2011-04-19 07:47:24 EDT
commited and released...
Comment 3 Petya Sabeva CLA 2011-04-19 07:48:31 EDT
commited and released