]> git.mxchange.org Git - jcustomer-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 1 Nov 2017 21:48:10 +0000 (22:48 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 1 Nov 2017 21:48:10 +0000 (22:48 +0100)
- removed Search<Entity>ById as this is considered as performance-reducing. The
  reason is, that the EJB will then be more "asked" for single entries only.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java

index 3e27213f21a36780bd15ecea29093e3968d5bcf7..234d267af97224618579d4d5fb9b4aa74259ebee 100644 (file)
@@ -53,7 +53,6 @@ import org.mxchange.jcustomercore.model.customer.status.CustomerAccountStatus;
                {
                        @NamedQuery (name = "AllCustomers", query = "SELECT c FROM customer AS c ORDER BY c.customerId ASC"),
                        @NamedQuery (name = "SearchCustomerByNumber", query = "SELECT c FROM customer AS c WHERE c.customerNumber = :customerNumber"),
-                       @NamedQuery (name = "SearchCustomerById", query = "SELECT c FROM customer AS c WHERE c.customerId = :customerId")
                }
 )
 @SuppressWarnings ("PersistenceUnitPresent")