Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BDEC39FA34A for ; Sat, 27 Oct 2007 20:29:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 06613-10 for ; Sat, 27 Oct 2007 20:29:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ebox1b.ebox.com (ebox1.ebox.com [64.7.141.6]) by postgresql.org (Postfix) with ESMTP id 96A4F9FA1E8 for ; Sat, 27 Oct 2007 20:29:22 -0300 (ADT) Received: from dave-cramers-computer-2.local (dcdsl.ebox.com [64.7.143.116]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ebox1b.ebox.com (Postfix) with ESMTP id 8FBF317E0D0; Sat, 27 Oct 2007 19:29:20 -0400 (EDT) Message-ID: <4723C9D4.1090701@fastcrypt.com> Date: Sat, 27 Oct 2007 19:29:24 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Robert Wimmer Cc: Oliver Jowett , John R Pierce , pgsql-jdbc@postgresql.org Subject: Re: JPA and Postgresql References: <4723A4DF.8020605@hogranch.com> <4723AD1D.803@hogranch.com> <4723BECE.5000805@opencloud.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050609040102010900090600" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/163 X-Sequence-Number: 17735 This is a multi-part message in MIME format. --------------050609040102010900090600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Robert Wimmer wrote: > > > > Robert Wimmer wrote: > > > > > if there would exist a postgresql jdbc4 driver that supports the > features > > > you need for the JPA extensions, i wouldnt have asked here. > > > > Well, what are the features that JPA needs that the current driver > > doesn't provide? Assume that we know nothing about JPA. > > > > qoute from jdbc.postgresql.org > > "JDK 1.6 - JDBC4. Support for JDBC4 methods is limited. The driver > builds, but the majority of new methods are stubbed out" > > what i want to do is to use the new java annotations for > "OR-Mapping". so i dont have to do all these mappings by hand and via > SQL Strings. the following is an example that runs with derby on > eclipse. trying similar things with the new jdbc driver didnt work. > > ** snippet > > @Entity > @Table(name = "PRODUCTLINE", schema = "CLASSICCARS", uniqueConstraints > = {}) > public class Productline implements java.io.Serializable { > > ** > Well, this is simply defining a table, schema, and unique constraints. The driver should have nothing to do here. Dave > > regards sepp > > ------------------------------------------------------------------------ > Jetzt 30 Gratis-Emoticons für Windows Live Messenger downloaden! > Windows Live Messenger --------------050609040102010900090600 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Robert Wimmer wrote:
>
> Robert Wimmer wrote:
>
> > if there would exist a postgresql jdbc4 driver that supports the features
> > you need for the JPA extensions, i wouldnt have asked here.
>
> Well, what are the features that JPA needs that the current driver
> doesn't provide? Assume that we know nothing about JPA.
>
 
qoute from jdbc.postgresql.org

"JDK 1.6 - JDBC4. Support for JDBC4 methods is limited. The driver builds, but the majority of new methods are stubbed out"

what i want to do is to use the new java annotations for "OR-Mapping".  so i dont have to do all these mappings by hand and via SQL Strings. the following is an example that runs with derby on eclipse. trying similar things with the new jdbc driver  didnt work.

** snippet

@Entity
@Table(name = "PRODUCTLINE", schema = "CLASSICCARS", uniqueConstraints = {})
public class Productline implements java.io.Serializable {

**

Well, this is simply defining a table, schema, and unique constraints. The driver should have nothing to do here.

Dave

regards sepp


Jetzt 30 Gratis-Emoticons für Windows Live Messenger downloaden! Windows Live Messenger

--------------050609040102010900090600--