surrogate key « Composite « JPA Q&A





1. Mixed surrogate composite key insert in JPA 2.0, PostgreSQL and Hibernate 3.5    stackoverflow.com

First off, we are using JPA 2.0 and Hibernate 3.5 as persistence provider on a PostgreSQL database. We successfully use the sequence of the database via the JPA 2.0 annotations as an ...

2. composite and surrogate keys    forum.hibernate.org

I was reading the documentation and came upon something that has thrown me. In the last section of chapter 6, it says "if you have fully embraced our view that composite keys are a band thing and that entities should have synthetic identifiers (surrogate keys)...." This was the first time I heard of composite keys being a bad thing. I have ...

3. composite versus surrogate keys. Opinions wanted!    forum.hibernate.org

On the current project we have a division between two groups on what type of key structure we should use in the database. I am on the side of using surrogate (also called natural keys) with hibernate or any database access tool. Using surrogate keys is very simple in my java applications since hibernate takes care of the magic to persist ...