Join tables for one-to-many associations are good for optional associations, e.g. if you have EMP and DEPT tables, you would need a nullable DEBT_ID column in the EMP table if there can be employees who are not assigned to a particular department. A separate EMP_DEPT table would avoid this nullable column (use Google to find out why SQL NULLs are evil), because you simply wouldn't have a record for this EMP in the join table, if it doesn't have a department.
_________________ JAVA PERSISTENCE WITH HIBERNATE http://jpwh.org Get the book, training, and consulting for your Hibernate team.
|