# HG changeset patch # User Raimund Renkert # Date 1371136793 -7200 # Node ID f33f6e1ba9f81ccb03221c843d57316387664ceb # Parent 8250e5bb7c84d7bf87adcd8c0f20af40a1e0edcf Changed scope of repositories. diff -r 8250e5bb7c84 -r f33f6e1ba9f8 src/main/java/de/intevation/lada/data/LMessungRepository.java --- a/src/main/java/de/intevation/lada/data/LMessungRepository.java Thu Jun 13 17:19:17 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/LMessungRepository.java Thu Jun 13 17:19:53 2013 +0200 @@ -5,7 +5,6 @@ import java.util.Map; import javax.ejb.EJBTransactionRolledbackException; -import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.inject.Named; import javax.persistence.EntityExistsException; @@ -27,7 +26,7 @@ * * @author Raimund Renkert */ -@ApplicationScoped +@Named("lmessungrepository") public class LMessungRepository extends Repository { diff -r 8250e5bb7c84 -r f33f6e1ba9f8 src/main/java/de/intevation/lada/data/LProbeRepository.java --- a/src/main/java/de/intevation/lada/data/LProbeRepository.java Thu Jun 13 17:19:17 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/LProbeRepository.java Thu Jun 13 17:19:53 2013 +0200 @@ -5,7 +5,6 @@ import java.util.Map; import javax.ejb.EJBTransactionRolledbackException; -import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.inject.Named; import javax.persistence.EntityExistsException; @@ -29,7 +28,6 @@ * * @author Raimund Renkert */ -@ApplicationScoped @Named("lproberepository") public class LProbeRepository extends Repository{ diff -r 8250e5bb7c84 -r f33f6e1ba9f8 src/main/java/de/intevation/lada/data/Repository.java --- a/src/main/java/de/intevation/lada/data/Repository.java Thu Jun 13 17:19:17 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/Repository.java Thu Jun 13 17:19:53 2013 +0200 @@ -3,13 +3,12 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.persistence.EntityManager; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Root; -import javax.inject.Named; import de.intevation.lada.rest.Response; @@ -19,8 +18,7 @@ * * @author Raimund Renkert */ -@Named -@ApplicationScoped +@RequestScoped public abstract class Repository { /**