X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2E744475F00 for ; Thu, 24 Apr 2003 18:35:50 -0400 (EDT) Received: from smtp.us.messagingengine.com (ny3.fastmail.fm [66.111.4.4]) by postgresql.org (Postfix) with ESMTP id 8448B475E9D for ; Thu, 24 Apr 2003 18:35:48 -0400 (EDT) Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by server3.messagingengine.com (Postfix) with ESMTP id 902B85E013 for ; Thu, 24 Apr 2003 18:35:49 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by messagingengine.com with SMTP; Thu, 24 Apr 2003 18:35:48 -0400 X-Epoch: 1051223748 X-Sasl-enc: 4o+T4yDNQ3OZz5tzOc4GLQ Received: from COEUS6 (0x83a4776e.kd4nxx16.adsl-dhcp.tele.dk [131.164.119.110]) by www.fastmail.fm (Postfix) with ESMTP id 9A9B33361A for ; Thu, 24 Apr 2003 18:35:38 -0400 (EDT) From: "Nuno D. Leitao" To: Subject: Connecting from Java to PostgreSQL Date: Fri, 25 Apr 2003 00:35:42 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal X-Spam-Status: No, hits=-11.5 required=5.0 tests=BAYES_10,MSGID_GOOD_EXCHANGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/163 X-Sequence-Number: 4102 Having a strange problem with Sun studio 4 update 1 talking to postgreSQL 7.2. (Redhat version) Using the latest Postgres JDBC driver (both latest stable and dev releases)- in Sun studio I'm having problems mapping my container manager persitence entity beans to postgres tables. I make a database schema and entity bean from the postgres datasource (everything's fine at this stage) but when I try to map the ejb fields to tables in the postgres schema, for deployment, the dialogue reports "Table 'x' has no primary keys defined" I've checked my keys and indexes and I definitley have a primary key defined. Is there something I'm missing? I have the database in MySQL also and it works fine with Sun - but I'd much rather have a postgres backend. I've searched the web and newsgroups and can find hardly any information on this topic, your help would be very much appreciated regards Nuno D. Leitao