import java.util.Collection;
<BUG>import java.util.Iterator;</BUG>
@javax.persistence.Entity
@Table(name = "metric")
@NamedQueries({
<BUG>@NamedQuery(name = Metric.GET_TEST, query = "SELECT test from TestMetric tm inner join tm.test test inner join tm.metric m where m= :entity"),

@NamedQuery(name = Metric.FIND_BY_NAME_GROUPID, query = "SELECT m from TestMetric tm inner join tm.metric m inner join tm.test test where test.groupId= :groupId and m.name= :name"),

@NamedQuery(name = Metric.FIND_BY_GROUPID, query = "SELECT DISTINCT m from Metric m, TestMetric tm, Test t WHERE t.groupId= :groupId AND tm.test.id = t.id AND tm.metric.id = m.id ORDER BY m.name"),

@NamedQuery(name = Metric.FIND_BY_TESTID, query = "SELECT m from Metric m, TestMetric tm WHERE tm.test.id = :testId AND tm.metric.id = m.id")})
@XmlRootElement(name = "metric")</BUG>
@SecuredEntity(type = EntityType.TEST)

import java.util.Collection;
@javax.persistence.Entity
@Table(name = "metric")
@NamedQueries({
@NamedQuery(name = Metric.GET_TEST, query = "SELECT m.tests from Metric m where m= :entity"),
@NamedQuery(name = Metric.FIND_BY_NAME_GROUPID, query = "SELECT m from Metric m inner join m.tests test where test.groupId= :groupId and m.name= :name"),
@NamedQuery(name = Metric.FIND_BY_GROUPID, query = "SELECT DISTINCT m from Metric m inner join m.tests t WHERE t.groupId= :groupId ORDER BY m.name"),
})
@XmlRootElement(name = "metric")
@SecuredEntity(type = EntityType.TEST)
