Hello! It doesn't seem like SQL will support Enums now (either with SELECT or DML) regardless of Query Entities:
Please watch for https://issues.apache.org/jira/browse/IGNITE-4575 Regards, -- Ilya Kasnacheev ср, 23 янв. 2019 г. в 19:43, michal23849 <[email protected]>: > Hi, > > When i specify as: > <entry key="type" value="com.myproject.model.EntitlementType" /> > > Then I got the error when converting the inputs to Enum: > > 2019-01-23T17:38:48,340 ERROR o.a.i.i.p.o.j.JdbcRequestHandler > [client-connector-#79] Failed to execute SQL query [reqId=0, > req=JdbcQueryExecuteRequest [schemaName=PUBLIC, pageSize=1024, maxRows=0, > sqlQry=INSERT INTO GEN.Entitlements (NAME, TYPE) VALUES > ('ent1','FUNCTION'), args=[], stmtType=ANY_STATEMENT_TYPE]] > org.apache.ignite.internal.processors.query.IgniteSQLException: Value > conversion failed [from=java.lang.String, > to=com.myproject.model.EntitlementType] > Caused by: org.h2.message.DbException: Hexadecimal string contains non-hex > character: "FUNCTION" [90004-195] > > Unless there is another way to enforce the conversion in some more direct > way? > > Regards > Michal > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
