Philipp Hauer's Blog

Engineering Management, Java Ecosystem, Kotlin, Sociology of Software Development

MySQL

How To Use UUIDs With Hibernate And MySQL

Posted on Aug 15, 2016

How To Use UUIDs With Hibernate And MySQL

Auto increment IDs are not working well when it comes to distributed databases. Instead, we should use UUIDs. Let’s consider the pros and cons of UUIDs and how we can use them with Hibernate and MySQL.