Received: from hobart.southcom.com.au (hobart.southcom.com.au [203.60.16.2]) by hub.org (8.9.3/8.9.3) with ESMTP id TAA57680 for ; Thu, 6 Jan 2000 19:22:44 -0500 (EST) (envelope-from shevlandj@kpi.com.au) Received: from elite (dhcp25.office.southcom.com.au [203.39.132.25]) by hobart.southcom.com.au (8.9.3/8.9.3) with SMTP id LAA67875; Fri, 7 Jan 2000 11:21:11 +1100 (EST) (envelope-from shevlandj@kpi.com.au) Message-ID: <016801bf5944$ab321ea0$198427cb@kpi.com.au> From: "Joe Shevland" To: "Assaf Arkin" Cc: "Peter Mount" , "'Phillip Rhodes'" , "'pgsql-interfaces@postgresql.org'" References: <1B3D5E532D18D311861A00600865478C70C03B@exchange1.nt.maidstone.gov.uk> <00d801bf593f$505199c0$198427cb@kpi.com.au> <3875331D.23218DF8@exoffice.com> Subject: Re: [INTERFACES] query java object? Date: Fri, 7 Jan 2000 11:23:25 -0800 Organization: KPI Logistics Pty Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Gotcha reply on the ejb list... Cheers, very excited to look at this, Joe Shevland. ----- Original Message ----- From: "Assaf Arkin" To: "Joe Shevland" Cc: "Peter Mount" ; "'Phillip Rhodes'" ; "'pgsql-interfaces@postgresql.org'" Sent: Thursday, January 06, 2000 4:28 PM Subject: Re: [INTERFACES] query java object? > Joe, > > Tomorrow we're going to release a new version of Castor that does just > that. It's being developed and tests with PostgreSQL (what else) so you > can bet it's PostgreSQL complaint. > > It does Java persistence into SQL tables by mapping Java fields to SQL > columns, supports one-one and many-one relationships, inheritance, > locking, the whole enchilada. > > This release only includes the ODMG API, the next release (two weeks > from now) will include the CMP API as well (EJB 1.1 compliant) plus OQL > for describing finders. > > The next release will also integrate with Tyrex for JTA transaction > management, 2 phase commit, etc. I've been in contact with Peter about > adding X/A support to the next release of the PostgreSQL JDBC driver to > support distributed transactions. > > I'm doing the final touches on the source code right now and will have a > release to download tomorrow. > > Oh, the link: http://castor.exolab.org > > arkin > > > Joe Shevland wrote: > > > > Hi all, > > > > OK, hopefully this all makes sense... > > > > > > The enterprise java beans spec specifies that classes > > requiring (CMP) persistence need to let the container know > > which attributes to persist by way of an XML > > descriptor. > > > > > > So, given that we only want to persist certain properties/attributes > > of a particular Java class is this possible using the mechanism > > described below? > > > > Also, what are the overheads involved here? I guess the table > > will need to be created the first time an object of a particular > > type is stored, after that it should fairly normal? > > > > I'd love to be able to come up with a container-managed-persistence > > module based on PostgreSQL for EJBOSS (www.ejboss.org), but > > I'm still sorting things out in my head as to the best ways of doing this. > > > > One little weird one, given that the Java classes you persist actually > > persist other classes they reference (as long as they're defined in > > PostgreSQL mapping I guess), would a way around the cyclic > > reference problem be to check the .equals() method when storing > > chained objects, maintain a hashtable for each root node and not > > store the object if it has already been done? That seems awfully > > simplistic, what are the issues involved? > > > > Regards, > > Joe. > > > > ----- Original Message ----- > > From: "Peter Mount" > > To: "'Phillip Rhodes'" ; > > "'pgsql-interfaces@postgresql.org'" > > Sent: Thursday, January 06, 2000 1:50 AM > > Subject: RE: [INTERFACES] query java object? > > > > > Yes of sorts. We have a small extension that allows a Serialized object > > > to be stored in one or more tables (rather than as a stream). Once > > > serialized in this way, you can then query the stored objects just like > > > any other SQL Table. > > > > > > Peter > > > > > > -- > > > Peter Mount > > > Enterprise Support > > > Maidstone Borough Council > > > Any views stated are my own, and not those of Maidstone Borough Council. > > > > > > > > > > > > -----Original Message----- > > > From: Phillip Rhodes [mailto:rhodespc@bellatlantic.net] > > > Sent: Monday, January 03, 2000 2:11 AM > > > To: 'pgsql-interfaces@postgresql.org' > > > Subject: [INTERFACES] query java object? > > > > > > > > > I read through the documentation for Postgres and Java, but I am a > > > little > > > unclear on something: (probably a few things!) > > > > > > Is it possible to execute a query based on the attributes of a > > > serialized > > > object? Or do I have to instantiate each object and do an if test? > > > > > > > > > Thanks! > > > > > > Phillip > > > > > > > > > > > > ************ > > > > > > ************ > > > > > > > ************ >