Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 325EE18B7B for ; Tue, 24 Nov 2015 08:39:20 +0000 (UTC) Received: (qmail 55776 invoked by uid 500); 24 Nov 2015 08:39:20 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 55730 invoked by uid 500); 24 Nov 2015 08:39:20 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 55718 invoked by uid 99); 24 Nov 2015 08:39:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 08:39:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 66A01C6C02 for ; Tue, 24 Nov 2015 08:39:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mBLhcg-y51_n for ; Tue, 24 Nov 2015 08:39:12 +0000 (UTC) Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com [209.85.160.180]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 16CB820EBA for ; Tue, 24 Nov 2015 08:39:12 +0000 (UTC) Received: by ykdr82 with SMTP id r82so10841843ykd.3 for ; Tue, 24 Nov 2015 00:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=RRSwi8UBMPSVqQN6l24xoe16xLQ7MIzOcEUqdChLlRk=; b=YClR9abUbaofuiItWQv+WI3QUnQIuxw4AIJZt3E+Ly9gJq5C+JoQOpu42DX1tEglEb Ow/5P0U3nsVcv7/8DKCb1ZYt6i38n6SfJyPFz7C27InFqHMtm06gwaoVL0dpwcGxQ/lq 4KpDBeL3YlXPOxAZdrL0P+47OeRwS5A9UmQJsrAyDv+2ziCL8VnW/0BhzO94z7iv+tNA w+7fB9Zbkk7jbqMEe+kMoxEqm66ayjJm0iaQ7xCYXKNu6XMARpNY5rdyZPa4mvDL02At yHaM3y8LZBa8TYWo6IA/vYjEDiH83BMIs7oyIvyhBSHJ1TyXG/F91dPLI9mIbZemXJ96 ImGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=RRSwi8UBMPSVqQN6l24xoe16xLQ7MIzOcEUqdChLlRk=; b=X4jpeh6o6Enb8/cmPN0NzYvyMx05YvsOTnK8lIvD/mMkgmA3/TyXFODmDKJkBDMClN yTAr0VUy8tfSH1BvV4P9uuF6hUdPxhtVAJeqewx5uGutrbvf9U+tWVHa/CrJ7r1QK0bk 1fa8ZvhhW41bZ8Pw6y4IduKkKouVb2rbSpHTQCGY/kWTwk5lTb6q2LXF9CJn4PkLg0ES A2nj3K38wyenwQxkxQE85Zx+XU99HgDjb0A1Pr2l9SOJttKvtVcr7BYTb7NmU7qwu+iB Mu5ip1glY9YnPInSMxe+lKJly1Q6mcZp2VnfvlHiVGRYgko7wOHJ4Z08070ku4XPGnnw 5hUA== X-Gm-Message-State: ALoCoQk0F/nyTYZqXhw48Pmeu9A4jIfWcKeL1Wu9ukK7jwPid5oDgftLNRLoAGW7A4v8WbCJiw7a MIME-Version: 1.0 X-Received: by 10.129.39.17 with SMTP id n17mr26518529ywn.36.1448354351123; Tue, 24 Nov 2015 00:39:11 -0800 (PST) Received: by 10.129.41.79 with HTTP; Tue, 24 Nov 2015 00:39:11 -0800 (PST) Date: Tue, 24 Nov 2015 15:39:11 +0700 Message-ID: Subject: @QuerySqlField is incompatible in ignite 1.5 with 1.4 when set on method From: Alexey Kuznetsov To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114086c49bc53f05254546fa --001a114086c49bc53f05254546fa Content-Type: text/plain; charset=UTF-8 Igniters, I have such class in ignite-1.4 class Test( @Id @ScalaCacheQuerySqlField(index = true) val id: Long = 0L, val name: String = null, aStatus: ListStatus, val ruleID: Long = 0L) extends Serializable { private val intStatus = enumToByte(aStatus) @ScalaCacheQuerySqlField(index = true) def status: ListStatus = byteToEnum(ListStatus.values, intStatus) } As part of my tests of upcoming ignite 1.5 I run my code and get exception like this: Caused by: class org.apache.ignite.IgniteCheckedException: Failed to initialize property 'status' for key class 'class java.lang.Long' and value class 'class my.tester.sql.Test'. Make sure that one of these classes contains respective getter method or field. at org.apache.ignite.internal.processors.query.GridQueryProcessor.buildClassProperty(GridQueryProcessor.java:1512) at org.apache.ignite.internal.processors.query.GridQueryProcessor.processClassMeta(GridQueryProcessor.java:1393) at org.apache.ignite.internal.processors.query.GridQueryProcessor.initializeCache(GridQueryProcessor.java:241) at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:374) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1015) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:786) After some debug I found that GridQueryProcessor tries to find method with "get", but I have method without "get" in name. I think we should add support for such use case, when user declare getters/setters without using "get/set" prefixes. Thoughts? -- Alexey Kuznetsov GridGain Systems www.gridgain.com --001a114086c49bc53f05254546fa--