daos are stateless beans, type in MemberAssetVO getAsset

This commit is contained in:
Peter Hormanns 2017-07-12 16:38:03 +02:00
parent 438b9eec6e
commit 6c54a57852
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package de.hsadmin.dao.customer; package de.hsadmin.dao.customer;
import javax.ejb.Stateless;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext; import javax.persistence.PersistenceContext;
import javax.persistence.Query; import javax.persistence.Query;
@ -9,6 +10,7 @@ import de.hsadmin.common.error.TechnicalException;
import de.hsadmin.common.error.UserException; import de.hsadmin.common.error.UserException;
import de.hsadmin.service.customer.MemberAssetVO; import de.hsadmin.service.customer.MemberAssetVO;
@Stateless
public class MemberAssetDao { public class MemberAssetDao {
@PersistenceContext(name="hsar") @PersistenceContext(name="hsar")

View File

@ -1,5 +1,6 @@
package de.hsadmin.dao.customer; package de.hsadmin.dao.customer;
import javax.ejb.Stateless;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext; import javax.persistence.PersistenceContext;
import javax.persistence.Query; import javax.persistence.Query;
@ -9,6 +10,7 @@ import de.hsadmin.common.error.TechnicalException;
import de.hsadmin.common.error.UserException; import de.hsadmin.common.error.UserException;
import de.hsadmin.service.customer.MemberShareVO; import de.hsadmin.service.customer.MemberShareVO;
@Stateless
public class MemberShareDao { public class MemberShareDao {
@PersistenceContext(name="hsar") @PersistenceContext(name="hsar")

View File

@ -81,7 +81,7 @@ public class MemberAssetVO extends AbstractVO implements ValueObject {
return amount; return amount;
} }
public void setQuantity(BigDecimal amount) { public void setAmount(BigDecimal amount) {
this.amount = amount; this.amount = amount;
} }