From 6c54a57852d164ed8e6cd21869924f3641c7589a Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 12 Jul 2017 16:38:03 +0200 Subject: [PATCH] daos are stateless beans, type in MemberAssetVO getAsset --- .../src/main/java/de/hsadmin/dao/customer/MemberAssetDao.java | 2 ++ .../src/main/java/de/hsadmin/dao/customer/MemberShareDao.java | 2 ++ .../main/java/de/hsadmin/service/customer/MemberAssetVO.java | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cust-services/src/main/java/de/hsadmin/dao/customer/MemberAssetDao.java b/cust-services/src/main/java/de/hsadmin/dao/customer/MemberAssetDao.java index 82e2482..26f88fe 100644 --- a/cust-services/src/main/java/de/hsadmin/dao/customer/MemberAssetDao.java +++ b/cust-services/src/main/java/de/hsadmin/dao/customer/MemberAssetDao.java @@ -1,5 +1,6 @@ package de.hsadmin.dao.customer; +import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; @@ -9,6 +10,7 @@ import de.hsadmin.common.error.TechnicalException; import de.hsadmin.common.error.UserException; import de.hsadmin.service.customer.MemberAssetVO; +@Stateless public class MemberAssetDao { @PersistenceContext(name="hsar") diff --git a/cust-services/src/main/java/de/hsadmin/dao/customer/MemberShareDao.java b/cust-services/src/main/java/de/hsadmin/dao/customer/MemberShareDao.java index 2529dec..f9ebd3b 100644 --- a/cust-services/src/main/java/de/hsadmin/dao/customer/MemberShareDao.java +++ b/cust-services/src/main/java/de/hsadmin/dao/customer/MemberShareDao.java @@ -1,5 +1,6 @@ package de.hsadmin.dao.customer; +import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; @@ -9,6 +10,7 @@ import de.hsadmin.common.error.TechnicalException; import de.hsadmin.common.error.UserException; import de.hsadmin.service.customer.MemberShareVO; +@Stateless public class MemberShareDao { @PersistenceContext(name="hsar") diff --git a/cust-services/src/main/java/de/hsadmin/service/customer/MemberAssetVO.java b/cust-services/src/main/java/de/hsadmin/service/customer/MemberAssetVO.java index fd4f8bd..2ff4011 100644 --- a/cust-services/src/main/java/de/hsadmin/service/customer/MemberAssetVO.java +++ b/cust-services/src/main/java/de/hsadmin/service/customer/MemberAssetVO.java @@ -81,7 +81,7 @@ public class MemberAssetVO extends AbstractVO implements ValueObject { return amount; } - public void setQuantity(BigDecimal amount) { + public void setAmount(BigDecimal amount) { this.amount = amount; }