/**
 * 
 */
package be.shoktan.BeeBreedingManager.model;

import javax.persistence.ManyToOne;

/**
 * Model class to represent a collection of bees
 * @author Wisthy
 *
 */
public class BeeCollection extends ANamedEntity{
	@ManyToOne
	private User owner;
	
	
	
	// ********** getters & setters ********** //
	
	/**
	 * @return the owner
	 */
	public User getOwner() {
		return owner;
	}

	/**
	 * @param owner the owner to set
	 */
	public void setOwner(User owner) {
		this.owner = owner;
	}
	
	
	
	// ********** others ********** //
}

@@ -1,16 +1,4 @@
-/**%0A * %0A */%0A
 pack
@@ -39,16 +39,137 @@
 model;%0A%0A
+import java.util.Collection;%0Aimport java.util.SortedSet;%0Aimport java.util.TreeSet;%0A%0Aimport javax.persistence.ManyToMany;%0A
 import j
@@ -359,16 +359,112 @@
 wner;%0A%09%0A
+%09@ManyToOne%0A%09private Modpack modpack;%0A%09%0A%09@ManyToMany%0A%09private SortedSet%3CSpecie%3E ownedSpecies;%0A%09%0A
 %09%0A%09%0A%09// 
@@ -695,48 +695,982 @@
 %0A%09%7D%0A
-%09%0A%09%0A%09%0A%09// ********** others ********** //
+%0A%09/**%0A%09 * @return the modpack%0A%09 */%0A%09public Modpack getModpack() %7B%0A%09%09return modpack;%0A%09%7D%0A%0A%09/**%0A%09 * @param modpack the modpack to set%0A%09 */%0A%09public void setModpack(Modpack modpack) %7B%0A%09%09this.modpack = modpack;%0A%09%7D%0A%0A%09/**%0A%09 * @return the ownedSpecies%0A%09 */%0A%09public Collection%3CSpecie%3E getOwnedSpecies() %7B%0A%09%09return ownedSpecies;%0A%09%7D%0A%0A%09/**%0A%09 * @param ownedSpecies the ownedSpecies to set%0A%09 */%0A%09public void setOwnedSpecies(SortedSet%3CSpecie%3E ownedSpecies) %7B%0A%09%09this.ownedSpecies = ownedSpecies;%0A%09%7D%0A%09%0A%09%0A%09// ********** others ********** //%0A%09%0A%09/**%0A%09 * do the initialization of the ownedSpecies set if necessary%0A%09 */%0A%09private void initOwnedSpecies()%7B%0A%09%09if(this.ownedSpecies == null)%7B%0A%09%09%09this.ownedSpecies = new TreeSet%3C%3E();%0A%09%09%7D%0A%09%7D%0A%09%0A%09/**%0A%09 * add the specie to the set of owned species%0A%09 * @param specie the specie to add%0A%09 * @return true if the specie has been added, false elsewhere%0A%09 */%0A%09public boolean addSpecie(Specie specie)%7B%0A%09%09initOwnedSpecies();%0A%09%09return this.ownedSpecies.add(specie);%0A%09%7D
 %0A%7D%0A

Update BeeCollection.java