@@ -0,0 +1,1551 @@
+package be.shoktan.BeeBreedingManager.model;%0A%0Aimport java.util.Collection;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.EnumType;%0Aimport javax.persistence.Enumerated;%0Aimport javax.persistence.ManyToMany;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * Model class to represent a particular version of a plugin providing bees%0A * @author Wisthy%0A *%0A */%0A@Entity%0Apublic class PluginVersion extends ANamedEntity %7B%0A%09private static final Logger LOG = LoggerFactory.getLogger(PluginVersion.class);%0A%09%0A%09@Enumerated(EnumType.STRING)%0A%09private EPlugin plugin;%0A%09%0A%09@ManyToMany%0A%09private Collection%3CModpack%3E modpacks;%0A%09%0A%09// ********** getters & setters ********** //%0A%09%0A%09public String getVersionNumber()%7B%0A%09%09return this.getName();%0A%09%7D%0A%0A%09/**%0A%09 * @return the plugin%0A%09 */%0A%09public EPlugin getPlugin() %7B%0A%09%09return plugin;%0A%09%7D%0A%0A%09/**%0A%09 * @param plugin the plugin to set%0A%09 */%0A%09public void setPlugin(EPlugin plugin) %7B%0A%09%09this.plugin = plugin;%0A%09%7D%0A%0A%09/**%0A%09 * @return the modpacks%0A%09 */%0A%09public Collection%3CModpack%3E getModpacks() %7B%0A%09%09return modpacks;%0A%09%7D%0A%0A%09/**%0A%09 * @param modpacks the modpacks to set%0A%09 */%0A%09public void setModpacks(Collection%3CModpack%3E modpacks) %7B%0A%09%09this.modpacks = modpacks;%0A%09%7D%0A%0A%0A%09%0A%09// ********** others ********** //%0A%09%0A%09/**%0A%09 * validate if this PluginVersion is correctly formed%0A%09 */%0A%09public boolean validate() %7B%0A%09%09boolean isValid = true;%0A%09%09if(plugin == null) %7B%0A%09%09%09LOG.error(%22the plugin type is not provided%22);%0A%09%09%09isValid = false;%0A%09%09%7D%0A%09%09%0A%09%09// TODO wisthy - 20140818 - 11:36 - add reverse check on modpack from here?%0A%09%09%0A%09%09return isValid;%0A%09%7D%0A%7D%0A

Create PluginVersion.java