Commit 45a74c6b by Tuukka Kivilahti

changes from comments

1 parent f2e1cd30
......@@ -80,11 +80,6 @@ public class PrinterRestView {
@Path("/Printed/{id}/")
public PrintedCardRestPojo setCardPrinted(@PathParam("id") int cardId, @QueryParam("key") String hash) throws Exception {
return PojoUtils.initPrintedCardRestPojo(cardbean.setCardState(cardId, CardState.PRINTED));
// PrintedCard card = cardbean.findCard(cardId);
// card.setCardState(CardState.PRINTED);
// card.setPrintCount(card.getPrintCount() + 1);
// card = cardbean.saveCard(card);
// return new PrintedCardRestPojoV3(card);
}
@GET
......
......@@ -16,8 +16,8 @@ import fi.codecrew.moya.rest.v2.pojo.ProductPojo;
import io.swagger.annotations.Api;
@RequestScoped
@Path("/v3/product")
@Api(value = "/v3/product", description = "Product operations")
@Path("/v2/product")
@Api(value = "/v2/product", description = "Product operations")
public class ProductRestView {
@EJB
......
......@@ -11,18 +11,10 @@ import fi.codecrew.moya.rest.pojo.userinfo.v3.PrintedCardRestPojoV3;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by jkj on 2015-05-31.
*/
public class PojoFactoryV3 implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public static ReaderEventRestPojoV3 createReaderEventRestPojo(ReaderEvent event) {
ReaderEventRestPojoV3 readerEvent = new ReaderEventRestPojoV3();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!