]> git.mxchange.org Git - jaddressbook-share-lib.git/commitdiff
possible fix for NPE in JPA?
authorRoland Haeder <roland@mxchange.org>
Fri, 23 Oct 2015 16:17:16 +0000 (18:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 23 Oct 2015 16:17:16 +0000 (18:17 +0200)
src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java

index d0e849f2fca8a4f0309ea1a364474b1a663ba92c..5264758853fdbc9cd29f34022f01d28feb90bc5d 100644 (file)
@@ -49,7 +49,7 @@ import org.mxchange.jcontactsbusiness.CompanyContact;
 @NamedQueries (
                @NamedQuery (
                                name = "SearchUsersAddressbookEntries",
-                               query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a.addressbookId WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC")
+                               query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC")
 )
 public class UserAddressbookEntry implements AddressbookEntry, Comparable<AddressbookEntry> {