package be.shoktan.BeeBreedingManager.model;

import javax.persistence.Entity;

/**
 * Model class representing a specie of a bee
 * @author Wisthy
 *
 */
@Entity
public class Specie extends Specification {

	/*
	 * (non-Javadoc)
	 * @see be.shoktan.BeeBreedingManager.model.Specification#getType()
	 */
	@Override
	protected ESpecificationType getType() {
		return ESpecificationType.specie;
	}

}

@@ -39,16 +39,44 @@
 model;%0A%0A
+import java.util.Iterator;%0A%0A
 import j
@@ -418,10 +418,872 @@
 ie;%0A%09%7D%0A%0A
+%09/*%0A%09 * (non-Javadoc)%0A%09 * @see be.shoktan.BeeBreedingManager.model.Specification#iterator()%0A%09 */%0A%09@Override%0A%09public Iterator%3CSpecification%3E iterator() %7B%0A%09%09return new SpecieIterator(this);%0A%09%7D%0A%09%0A%09private class SpecieIterator implements Iterator%3CSpecification%3E%7B%0A%09%09private boolean done = false;%0A%09%09private Specie root;%0A%09%09%0A%09%09/**%0A%09%09 * @param root%0A%09%09 */%0A%09%09public SpecieIterator(Specie root) %7B%0A%09%09%09super();%0A%09%09%09this.root = root;%0A%09%09%7D%0A%0A%09%09/*%0A%09%09 * (non-Javadoc)%0A%09%09 * @see java.util.Iterator#hasNext()%0A%09%09 */%0A%09%09@Override%0A%09%09public boolean hasNext() %7B%0A%09%09%09return done;%0A%09%09%7D%0A%0A%09%09/*%0A%09%09 * (non-Javadoc)%0A%09%09 * @see java.util.Iterator#next()%0A%09%09 */%0A%09%09@Override%0A%09%09public Specification next() %7B%0A%09%09%09done = true;%0A%09%09%09return root;%0A%09%09%7D%0A%0A%09%09/*%0A%09%09 * (non-Javadoc)%0A%09%09 * @see java.util.Iterator#remove()%0A%09%09 */%0A%09%09@Override%0A%09%09public void remove() %7B%0A%09%09%09// TODO Auto-generated method stub%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%7D%0A%0A
 %7D%0A

Update Specie.java