JPA: foreign key annotation

Viewed 117897

I've got two database entities: Forum and Topic.

Topic has protected long forumId data member, which indicates of course the Topic's forum.

My question is what annotation to use for this data member?

3 Answers
Related