Postgres UUID JDBC not working

tl;dr myPreparedStatement.setObject( … , java.util.UUID.randomUUID() ) Details (a) Show us your code. PreparedStatement::setObject does work when passing a java.util.UUID. You likely have some other issue in your code. (b) See my blog post UUID Values From JDBC to Postgres for a bit of discussion and example code. // Generate or obtain data to store in … Read more