]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 17 Oct 2017 20:34:29 +0000 (22:34 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 17 Oct 2017 20:34:29 +0000 (22:34 +0200)
- fixed imports

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBean.java

index 77f0ea6f971a7049d846d8c77fbc223ffada5f38..ee4754c1aff5c1e104e998f0ca48f6c10fa5716a 100644 (file)
@@ -20,7 +20,7 @@ import java.text.MessageFormat;
 import java.util.Date;
 import javax.ejb.EJB;
 import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.model.employee.Employee;
+import org.mxchange.jcontactsbusiness.model.employee.Employable;
 import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
 import org.mxchange.jusercore.model.user.User;
@@ -95,9 +95,9 @@ public class FinancialAdminReceiptSessionBean extends BaseFinancialsDatabaseBean
                }
 
                // Is employee instance set?
-               if (receipt.getReceiptSellerEmployee() instanceof Employee) {
+               if (receipt.getReceiptSellerEmployee() instanceof Employable) {
                        // Then get managed instanced
-                       final Employee managedEmployee = this.createManaged(receipt.getReceiptSellerEmployee());
+                       final Employable managedEmployee = this.createManaged(receipt.getReceiptSellerEmployee());
 
                        // Set it back
                        receipt.setReceiptSellerEmployee(managedEmployee);