Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335672 - Collection attributes should not be initialized
Summary: Collection attributes should not be initialized
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Project Inbox CLA
QA Contact: Stefan Dimov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 05:20 EST by Stefan Dimov CLA
Modified: 2011-04-19 07:48 EDT (History)
1 user (show)

See Also:


Attachments
patch (2.37 KB, patch)
2011-04-19 07:47 EDT, Petya Sabeva CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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