package ch.romix.restful.sales;

import org.glassfish.hk2.utilities.binding.AbstractBinder;

public class SalesBinder extends AbstractBinder {

  @Override
  protected void configure() {
    this.bindFactory(SalesEntityManagerFactory.class);
  }

}

@@ -26,16 +26,57 @@
 sales;%0A%0A
+import javax.persistence.EntityManager;%0A%0A
 import o
@@ -127,16 +127,67 @@
 inder;%0A%0A
+import ch.romix.restful.sales.logic.SalesService;%0A%0A
 public c
@@ -325,16 +325,98 @@
 y.class)
+.to(EntityManager.class);%0A    this.bind(SalesService.class).to(SalesService.class)
 ;%0A  %7D%0A%0A%7D

fix hk2 injection binding