Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4548

Invalid mapping of enum to varchar on load/store operation.

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.9
    • cache
    • None

    Description

      http://stackoverflow.com/questions/41609207/ignite-cachejdbcpojostorefactory-using-enum-fields

      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")
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            vsisko Vasiliy Sisko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 20m
              20m

              Slack

                Issue deployment