how can I bind custom data to a user?
Eg: User logs in > can only see Lists / Items he created himself.
Do I have to make an Entity User objekt, and further make it contain a @OneToMany list with these objects?
Or what is the best approach for things like this in general?
Tyvm!
It’s common practise to have a User kind of entity if you have a system where a user can log in and has it’s own stuff.
Consider a
Itemclass:Then you get a list of items from a particular user:
And an example Bean in JSF: