package be.shoktan.BeeBreedingManager.model;

import javax.persistence.Entity;

/**
 * Class used to represent of bee or a group of bees
 * usefull for mutation representation
 * @author Wisthy
 *
 */
@Entity @Inheritance(strategy=InheritanceType.JOINED)
public class Specification {
	
}

@@ -56,28 +56,275 @@
 java
-x.persistence.Entity
+.util.Collection;%0D%0A%0D%0Aimport javax.persistence.Column;%0D%0Aimport javax.persistence.Entity;%0D%0Aimport javax.persistence.Inheritance;%0D%0Aimport javax.persistence.InheritanceType;%0D%0Aimport javax.persistence.ManyToMany;%0D%0A%0D%0Aimport org.apache.commons.lang3.builder.CompareToBuilder
 ;%0D%0A%0D
@@ -513,16 +513,25 @@
 %0Apublic 
+abstract 
 class Sp
@@ -546,12 +546,1160 @@
 ion 
-%7B%0D%0A%09
+extends ABaseEntity implements Comparable%3CSpecification%3E%7B%0D%0A%0D%0A%09@Column(unique = true)%0D%0A%09private String name;%0D%0A%0D%0A%09@ManyToMany%0D%0A%09private Collection%3CGroup%3E groups;%0D%0A%0D%0A%0D%0A%0D%0A%09// ********** getters & setters ********** //%0D%0A%0D%0A%09/**%0D%0A%09 * @return the name%0D%0A%09 */%0D%0A%09public String getName() %7B%0D%0A%09%09return name;%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * @param name the name to set%0D%0A%09 */%0D%0A%09public void setName(String name) %7B%0D%0A%09%09this.name = name;%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * @return the groups%0D%0A%09 */%0D%0A%09public Collection%3CGroup%3E getGroups() %7B%0D%0A%09%09return groups;%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * @param groups the groups to set%0D%0A%09 */%0D%0A%09public void setGroups(Collection%3CGroup%3E groups) %7B%0D%0A%09%09this.groups = groups;%0D%0A%09%7D%09%0D%0A%0D%0A%0D%0A%0D%0A%09// ********** Abstract ********** //%0D%0A%0D%0A%09/**%0D%0A%09 * %0D%0A%09 * @return the type of the instance %0D%0A%09 */%0D%0A%09protected abstract ESpecificationType getType();%0D%0A%0D%0A%0D%0A%0D%0A%09// ********** others ********** //%0D%0A%0D%0A%09/*%0D%0A%09 * (non-Javadoc)%0D%0A%09 * @see java.lang.Comparable#compareTo(java.lang.Object)%0D%0A%09 */%0D%0A%09@Override%0D%0A%09public int compareTo(Specification o) %7B%0D%0A%09%09return new CompareToBuilder().append(this.getType(), o.getType())%0D%0A%09%09%09%09.append(this.name, o.name)%0D%0A%09%09%09%09.appendSuper(super.compareTo(o))%0D%0A%09%09%09%09.toComparison();%0D%0A%09%7D%0D%0A%0D%0A
 %0D%0A%7D%0D

Update Specification.java