- SearchContact is a relict from older times. It can be avoided by using
AllContacts + iterate over the whole list and find the wished entry. Sure
this consumes more memory than using SearchContact (by id) but that is okay
since modern servers have a lot RAM.
Signed-off-by: Roland Häder <roland@mxchange.org>
)
@NamedQueries (
{
- @NamedQuery (name = "AllContacts", query = "SELECT c FROM contacts AS c ORDER BY c.contactId ASC"),
- @NamedQuery (name = "SearchContact", query = "SELECT c FROM contacts AS c WHERE c = :contact")
+ @NamedQuery (name = "AllContacts", query = "SELECT c FROM contacts AS c ORDER BY c.contactId ASC")
}
)
@SuppressWarnings ("PersistenceUnitPresent")