ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasiliy Sisko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4548) Invalid mapping of enum to varchar on load/store operation.
Date Mon, 16 Jan 2017 05:41:27 GMT
Vasiliy Sisko created IGNITE-4548:

             Summary: Invalid mapping of enum to varchar on load/store operation.
                 Key: IGNITE-4548
                 URL: https://issues.apache.org/jira/browse/IGNITE-4548
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 1.9
            Reporter: Vasiliy Sisko
            Assignee: Vasiliy Sisko
             Fix For: 1.9


On load of data when type contain enum field that mapped in varchar in database sometimes
kind of type is incorrectly detected as binary. 
Pojo contain string transformer methods.
private OrderSide side; // OrderSide is an enum
public String getSideAsString() {
    return this.side.name();
public void setSideAsString(String s) {
    this.side = OrderSide.valueOf(s);
and enum column described as:
new JdbcTypeField(Types.VARCHAR, "side", String.class, "sideAsString")

This message was sent by Atlassian JIRA

View raw message