Hibernate Tips: Use an auto-incremented column as primary key
Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: My database supports auto-incremented columns. How can I use them as primary keys in Hibernate?