I am writing a web application in Java. Login required. To do this, create a table Users in the database. In the system itself (Phonebook), the user makes entries (names, phone numbers, addresses) - for this, he created the second table Entries.
What is the best way to ensure that the user sees only his records, only which he himself created?