I currently have a “selected” attribute for my object, which contains the information, whether a user selected it to be included in a graph. The problem is that if multiple users were to use the application at the same time, they would modify each others choice of objects. I would like to have this “selected” attribute user specific, so that each user only can modify and see their choice of objects. I thought about this for some time but can’t find a solution and thus would be very thankful if someone could help me out here :)
asked
Leon Gebhard
1 answers
2
Hey there,
What i think you could do is the following:
have a seperate entity for the selected option (SelectEntity)
Every grid entity can have multiple select entities
GridEntity 1 – * SelectEntity
The SelectEntity has an association to the user
SelectEntity * – 1 UserEntity
within the datagrid you can retrieve the selectentity that is associated to both the gridentity and currentuser.
Make sure with the creation of these entities that you ensure there is always only 1 SelectEntity per combination of user and gridEntity