What's the bib deal of uuid with postgres/jdbc?
I'm facing a problem when trying to retrieve an entity with ebeans from a postgresql db. The ID field has type UUID and so I get an error like this:
Code:
Query threw SQLException:ERROR: operator does not exist: d_uuid = character varying |
Well, ebean 2.7.4 solved it. I was using 2.7.0.
|
Ok... ebean 2.7.4 didn't solve it. I was able to work normally on friday and all of the sudden the problem started happening again. There's a possible quick hack you can do to solve it (at least, for PgSQL... it's up to you, no warranties) with ebean on source.
Declare a method like this on com.avaje.ebeaninternal.server.type.ScalarTypeUUID.java (it will override ScalarTypeBaseVarchar.bind(DataBind, T)): Code:
public void bind(DataBind b, UUID value) throws SQLException { |
Not completely right. Hope this works for you.
Code:
public void bind(DataBind b, UUID value) throws SQLException { |
All times are GMT -5. The time now is 08:07 AM. |