Commit 3f9dc3f6 by Tuukka Kivilahti

also some incomingflow-fixes and one '2 changes at the same time' -fix

1 parent f7709320
...@@ -50,6 +50,10 @@ import fi.codecrew.moya.util.MailMessage; ...@@ -50,6 +50,10 @@ import fi.codecrew.moya.util.MailMessage;
@DeclareRoles({ UserPermission.S_WRITE_ROLES }) @DeclareRoles({ UserPermission.S_WRITE_ROLES })
public class CardTemplateBean implements CardTemplateBeanLocal { public class CardTemplateBean implements CardTemplateBeanLocal {
private static final Logger logger = LoggerFactory.getLogger(CardTemplateBean.class); private static final Logger logger = LoggerFactory.getLogger(CardTemplateBean.class);
/** /**
......
...@@ -261,7 +261,7 @@ public class NetworkAssociationBean implements NetworkAssociationBeanLocal { ...@@ -261,7 +261,7 @@ public class NetworkAssociationBean implements NetworkAssociationBeanLocal {
} }
// Finally persist the association and return // Finally persist the association and return
na = networkAssociationFacade.create(na); networkAssociationFacade.create(na);
return na; return na;
} }
......
...@@ -173,10 +173,16 @@ public class ReaderBean implements ReaderBeanLocal { ...@@ -173,10 +173,16 @@ public class ReaderBean implements ReaderBeanLocal {
@Override @Override
public ReaderEvent assocCodeToCard(ReaderEvent readerEvent, PrintedCard card) { public ReaderEvent assocCodeToCard(ReaderEvent readerEvent, PrintedCard card) {
CardCode code = new CardCode(card, readerEvent.getReader().getType(), readerEvent.getValue()); // you can select between this and flushCache.
card = cardfacade.reload(card);
CardCode code = new CardCode(card, readerEvent.getReader().getType(), readerEvent.getValue(),eventbean.getCurrentEvent());
cardCodeFacade.create(code); cardCodeFacade.create(code);
card.getCardCodes().add(code);
return readerEvent; return readerEvent;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!