hakandilek / xmdl

Automatically exported from code.google.com/p/xmdl
0 stars 0 forks source link

initialize set fields inside beans #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Model beans that have OneToMany or ManyToMany references should initialize
these fields. For example, the fields such as;

    @ManyToMany(.....)
    private Set<PostCode> postCodes;

    @OneToMany(.....)
    private Set<Job> postedJobs;

should be generated as;

    @ManyToMany(.....)
    private Set<PostCode> postCodes = new HashSet<PostCode>();

    @OneToMany(.....)
    private Set<Job> postedJobs = new HashSet<Job>();

Original issue reported on code.google.com by hakandi...@gmail.com on 25 Jan 2009 at 2:13