How could I get data from another entity like foreign keys?
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.
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.