posted 15 years ago
One thing I'm finding quite frustrating with Hibernate is having to create objects to represent my composite primary keys. Am I missing something or is this what typically 'has' to be done? Hibernate seems nice when your domain model is created first and your db model can follow suit, but many of us are stuck with having to work with legacy systems. I'm not trying to dis Hibernate, but it seems like with legacy dbs iBATIS is ofen a better fit. Many company databases don't really seem to match up nicely with an object model and the objects you create to 'force' this match seem so out of place.
Are there some tips you guys can give me in regard to dealing with legacy dbs and using Hibernate?