Possible fix error with multiple uses of enum (#1473)

When an enum is exists in the type cache and isn't String, @DbArray
fails. This includes a test that should fail everywhere (order of
reading fields isn't guaranteed afaik and the column needs to be read
before the @DbArray for the test to fail).
This commit is contained in:
Snōwball
2018-08-21 20:26:08 +12:00
committed by Rob Bygrave
parent 5f83584315
commit f3d26e32ec
2 changed files with 12 additions and 2 deletions
@@ -18,6 +18,8 @@ public class EArrayBean {
ONE, TWO, THREE
}
IntEnum foo;
@Id
Long id;
@@ -50,6 +52,14 @@ public class EArrayBean {
@Version
Long version;
public IntEnum getFoo() {
return foo;
}
public void setFoo(final IntEnum foo) {
this.foo = foo;
}
public Long getId() {
return id;
}