If you want to keep the relationship but drop the foreign key (for performance reasons), then you should probably keep the relationships in the mappings. Hibernate doesn't care about foreign keys, it will carry on like it always has if you drop them. If you drop the relationship in the mapping file, then all the power of hibernate goes with it.
Note that you're opening yourself to a certain level of brittelness if you drop the DB relationships. Theoretically, someone could add now delete a row manually, leaving orphaned objects that your app will never be able to find (if it only ever finds child objects by navigating from their parents).
|