Hibernate, automatically persist dependant objects
问题 I'm quite new to Hibernate and have been trying to determine what it will do for you and what it requires you to do. A big one is dealing with an object that has dependants that don't yet exist in the database. For example, I have a Project object that includes a Manufacturer field that accepts a Manufacturer object as its value. In the database I have a products table with a mfr_id column that's a reference to the manufacturers table (a fairly typical unidirectional one-to-many relationship)