How could I get data from another entity like foreign keys?

0
Hi  Here is the problem.I got an Image entity and Event entity and I make an association between them. I want to let Image entity have an atribute "Event ID" and let it be same with Event entity. How could I do this ?     So in the data grid I could find the image relevant to a specific event easily.
asked
2 answers
0

I think your domain model is wrong. I would make it a one on one reference so that each event has just one event image. Then you can use this association to retrieve the image.

Regards,

Ronald

 

answered
0

Here is my Image and Event association.微信图片编辑_20231105222555.jpg

answered