Let's say I have a primary user table called UserProfile
, and on it there's a display name.
I have various modules that you can be a member of, with a UserProfile
and a ModuleId
on it to signify your ModuleMembership
. You then can have a profile for each different module to store data related to that module, for example if you're signed up for the PokerModule
you'll get a PokerProfile
.
I'd like to put the display name from UserProfile
on the PokerProfile
, but I'd like to do it in a normalized manner. I could do it via Hibernate or via SQL, either way works. The exact relationship would be PokerProfile.membership.userProfile.displayName
- how can I get this into an @Column
on the PokerProfile
class?