Hi Patrick,
I'm not able to reproduce this behavior with a simple test case:
@Test
public void enumBinding() {
handle.execute("create table bean (value varchar)");
handle.createUpdate("insert into bean(value) values(:value)")
.bindBean(new EnumBean())
.execute();
assertThat(handle.createQuery("select value from bean").mapTo(String.class).one())
.isEqualTo(
EnumType.NAME.name());
}
public class EnumBean {
public EnumType getValue() {
return EnumType.NAME;
}
}
public enum EnumType {
NAME {
@Override
public String toString() {
return "toString";
}
}
}
Can you share a simple reproduction test case, or some more detail on exactly when this happens?
Thanks.
> --
> You received this message because you are subscribed to the Google Groups "jDBI" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jdbi+uns...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jdbi/CALzbjpZ4QbJah%3DRvOsHsFhDeukN5_GwJgd01PFHmJ%2B6RAF44_w%40mail.gmail.com.