Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D2DA10FA3 for ; Wed, 5 Feb 2014 13:48:32 +0000 (UTC) Received: (qmail 26331 invoked by uid 500); 5 Feb 2014 13:48:31 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 25351 invoked by uid 500); 5 Feb 2014 13:48:30 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 23999 invoked by uid 99); 5 Feb 2014 13:48:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 13:48:28 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dharmesh.chohan@atos.net designates 160.92.103.80 as permitted sender) Received: from [160.92.103.80] (HELO smtp1.mail.atosorigin.com) (160.92.103.80) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 13:48:21 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp1.mail.atosorigin.com (Postfix) with ESMTP id 22AB33800A for ; Wed, 5 Feb 2014 14:48:01 +0100 (CET) Received: from mail2-ext.my-it-solutions.net (mail2-ext.my-it-solutions.net [217.115.65.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail2-ext.my-it-solutions.net", Issuer "Entrust Certification Authority - L1C" (verified OK)) by smtp1.mail.atosorigin.com (Postfix) with ESMTPS id 0BB7C38005 for ; Wed, 5 Feb 2014 14:48:01 +0100 (CET) X-ME-UUID: 20140205134801481.0BB7C38005@smtp1.mail.atosorigin.com Received: from mail1-int.my-it-solutions.net ([10.92.32.11]) by mail2-ext.my-it-solutions.net (8.14.3/8.14.3) with ESMTP id s15Dm0iA014749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Feb 2014 14:48:00 +0100 Received: from DEFTHW99ETSMSX.ww931.my-it-solutions.net ([10.86.142.100]) by mail1-int.my-it-solutions.net (8.14.3/8.14.3) with ESMTP id s15Dm05A003459 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 5 Feb 2014 14:48:00 +0100 Received: from DEERLM99EX1MSX.ww931.my-it-solutions.net ([169.254.1.253]) by DEFTHW99ETSMSX.ww931.my-it-solutions.net ([10.86.142.100]) with mapi id 14.03.0174.001; Wed, 5 Feb 2014 14:48:00 +0100 From: "Chohan, Dharmesh" To: "users@isis.apache.org" Subject: RE: Domain create table issue Thread-Topic: Domain create table issue Thread-Index: Ac8iY2k106cuYSDJQLaPtjjB9mTANAAApBKAAAN60YA= Date: Wed, 5 Feb 2014 13:47:59 +0000 Message-ID: <24796235A2F23E4DABCBF8D28DD0B6120150B87C@DEERLM99EX1MSX.ww931.my-it-solutions.net> References: <24796235A2F23E4DABCBF8D28DD0B6120150B7FE@DEERLM99EX1MSX.ww931.my-it-solutions.net> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.86.142.15] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Dan I could not see the CREATE TABLE for the domain in the logging. The application works fine, the error was produced when installing the fixt= ure from wicket viewer Prototyping->Install fixtures. The error was caused= by calling the isisJdoSupport.executeUpdate("delete from \"TopUpAmount\""= ) I have removed the line isisJdoSupport.executeUpdate("delete from \"TopUpA= mount\"") and now it does not throw the error. It seems the table is creat= ed on first use of the domain. Regards Dharmesh -----Original Message----- From: Dan Haywood [mailto:dan@haywood-associates.co.uk]=20 Sent: Wednesday, February 05, 2014 12:33 PM To: users Subject: Re: Domain create table issue On 5 February 2014 11:14, Chohan, Dharmesh wrote= : > Hi > > I have added a new domain as below and when I check the output it does=20 > not create the table for that domain. The problem comes when=20 > installing the fixture and running the command=20 > isisJdoSupport.executeUpdate("delete from > \"TopUpAmount\"") > I don't quite follow this. Do you see the 'CREATE TABLE' statement in the logging? If so, then we kno= w that the JDO/DN annotations are correct. To confirm, if you comment out the fixture setup, does Isis boot up ok? If it does, then check the output; I'm guessing that there might be an issu= e with the table name; that could be dependent on the JDBC driver you are d= ependent on. Postgres requires the double quotes to be escaped, others sup= port [square brackets] etc. > > [snip] > @ObjectType("TopUp Amount") > @Bookmarkable > public class TopUpAmount implements Comparable { .... } > > > ~~~ Also, not sure if it's your issue, but there shouldn't be a space in the @O= bjectType value. That gets used internally to create the OID of the object= , and could be causing a problem later on Let us know Dan > For all other domains ISIS creates a table for them. > > > Any ideas. > > Thanks > Dharmesh > > > > >