1 Reply Latest reply on Jun 18, 2015 4:47 AM by nadirx

    How to store cache data as String

    vlcvlc

      Hi,

       

      I want to store POJOs objects as plain string in database, but infinispan stores data column as serializable object.

      I tried using JdbcStringBasedStoreConfiguration but I receive exception: java.sql.SQLException: Incorrect string value: '\xFE\x03g\x03j\xBC...' for column 'data' at row 1

       

      Thank you for any help.

       

      Regards,

      Cris

        • 1. Re: How to store cache data as String
          nadirx

          The JdbcStringBasedStoreConfiguration only stores the key as a string. The value is still stored in its Marshalled format for efficiency reasons. If you need to have the values stored in a more natural format, you should look into the JPA cache store.

           

          Tristan