Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 5916 invoked from network); 22 May 2009 00:46:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 00:46:41 -0000 Received: (qmail 73070 invoked by uid 500); 22 May 2009 00:46:53 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 73008 invoked by uid 500); 22 May 2009 00:46:53 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 73000 invoked by uid 99); 22 May 2009 00:46:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 00:46:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dmclean62@gmail.com designates 74.125.46.30 as permitted sender) Received: from [74.125.46.30] (HELO yw-out-2324.google.com) (74.125.46.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 00:46:44 +0000 Received: by yw-out-2324.google.com with SMTP id 3so765454ywj.85 for ; Thu, 21 May 2009 17:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cgbL02uThtJG0Fdd7GXCl6W2JvkKpHkfjo2u/95lErs=; b=AoBLMgwlq9vT1traFX+l0KOze8etoX3FL0HL9moATifpfkP1jz6+ukyziMTKvcbUR4 +gLFdarPiyDT4+M8IBC8VPo4IHlcYQd9nCThaURygps6nNd0sbDjKMpPKN4D4m6Umm3E 2qqrIYxlrdX5wyrl4bBFWQVRFOfxBCIOU2cM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=A+jltZGyLOZIGP425AO22Q+5DMh/NtFrPEcl32zmTELO9G/VX+Ku36oqFg0K4k9BvC XeIrPo/valLTIQo1moB6+cKiJ11si/WcHPKlvo1Vh76vj37kOFzOd9cKHfq87eY/mxFO WvBAyjIONXBHfh7W2SwGkNiicbF1VOfWMoJVk= MIME-Version: 1.0 Received: by 10.90.33.15 with SMTP id g15mr2646128agg.5.1242953181704; Thu, 21 May 2009 17:46:21 -0700 (PDT) In-Reply-To: <95b72a290905211053u64739f7q5695aa78207f2de8@mail.gmail.com> References: <95b72a290905211053u64739f7q5695aa78207f2de8@mail.gmail.com> Date: Thu, 21 May 2009 20:46:21 -0400 Message-ID: <5627810d0905211746m45eaa7b7gf591ece7e843d0b5@mail.gmail.com> Subject: Re: Embedded Derby w/Hibernate From: Donald McLean To: Derby Discussion Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Did you create the tables? You have to use regular SQL to actually create the tables in the database before you can access them with Hibernate. On Thu, May 21, 2009 at 1:53 PM, Nicola DiPasquale wrote: > Hello, I am attempting to use an embedded Derby instance wrapped with > Hibernate and Hibernate Annotations. =A0However, after the tables are > initialized by Hibernate, the first time that I attempt to access the > tables Derby throws exceptions that claims the tables and views do not > exist. =A0When I restart the application everything works fine (because > the tables already exist in the database on load). =A0How can I possibly > alleviate this problem (without pulling Derby out into server mode)? ------------------------------------------------------------- Family photographs are a critical legacy for ourselves and our descendants. Protect that legacy with a digital backup and recovery plan.