I'll bet this is a common question, but I couldn't figure out how to search for it...
Say I've factored out (street) "Address" from several classes in my OOD. Is it also wise to factor out Address (into its own table) in the RDB? I'm fairly new to this stuff, and I don't see not, but I've had Address unfactored in past (procedural) applications, and the switch seems weird.
Out of curiosity, does Hibernate support both RDB implementations (Address-as-a-separate-entity vs. Address-as-a-set-of-fields-within-other-entities) for the "factored Address" OO class model?
Thanks,
Jamie
Say I've factored out (street) "Address" from several classes in my OOD. Is it also wise to factor out Address (into its own table) in the RDB? I'm fairly new to this stuff, and I don't see not, but I've had Address unfactored in past (procedural) applications, and the switch seems weird.
Out of curiosity, does Hibernate support both RDB implementations (Address-as-a-separate-entity vs. Address-as-a-set-of-fields-within-other-entities) for the "factored Address" OO class model?
Thanks,
Jamie