PB QueryByCriteria Help

2004-03-10 Thread Jin Bal
Hello, I have two objects mapped to tables: Vehicle { id manufacturerId ManufacturerObj ... } and Manufacturer { id name ... } The repository has these mapped in a vanilla 1:1 fashion - so nothing too complex there just standard repository mapping (ommitted for clarity) What I need to do is

Re: Failing Connect without Exception

2004-03-10 Thread Thomas Mahler
instantiating a broker does not open connections, so why should it throw any db related exception at that time? Thomas Christian Eugster wrote: Hi I am using rc4 and I test my application by trying to connect to a shut-down mysql-server to see what happens: broker = PersistenceBrokerFactory.cre

Re: subqueries: doc

2004-03-10 Thread Phil Warrick
Hi again, A small clarification, the query that I'd like to do is a little more complicated: find all A's with aAttribute = "foo" and having a D with dAttribute = "bar" and a C with cAttribute = "foobar". My original query could be achieved efficiently by searching for the D's with the two crit

Re: Problems using Batch Mode with JDK 1.2 (Bug?)

2004-03-10 Thread Oleg Nitz
Hi Rouven and all, I am a bit disappointed: the line number 1299 in the stack trace don't match the OJB_1_0_RC5 tagged source file PersistenceBrokerImpl.java (revision 1.60) There is a "try" keyword in that line, and nothing about batch mode around. Any ideas? BTW, is it Sun JDK 1.2.2_014? Rega

Re: [OTM] controllability of auto-retrieve

2004-03-10 Thread Oleg Nitz
Hi Joerg, Are you aware of the proxy collections feature? I guess this is exactly what you need. Regards, Oleg On Tuesday 09 March 2004 14:11, Joerg Heinicke wrote: > Hello, > > I have a question about the controllability of auto-retrieve of dependent > collections in OTM. I know about the pos

Re: subqueries: doc

2004-03-10 Thread Phil Warrick
Hi Jakob, Thanks for this writeup. Here's an example of a query that I'd like to perform: A-1--M-B-1--M-C | /\ -- | D i.e. A has a 1-M association with B, B has a 1-M associati

Re: Inner Join and Informix

2004-03-10 Thread Jakob Braeuchi
hi ? looks like informix does not like the sql92 syntax for joining. btw. p6spy is better suited to log the sqls. jakob [EMAIL PROTECTED] wrote: Hi, I'm building an application with Informix 7.25 and RedHat 9.0 I have 2 tables : ventas and articulos, and I need make a ReportQuery that execute

Re: Still no luck with this query

2004-03-10 Thread Jakob Braeuchi
hi john, you should at least provide some information about the repository you use. jakob [EMAIL PROTECTED] wrote: Dear all, Maybe I wasn't asking my question well because it had not gained a response in about a week. Maybe I am missing something very simple, but I am still pretty new to any

Failing Connect without Exception

2004-03-10 Thread Christian Eugster
Hi I am using rc4 and I test my application by trying to connect to a shut-down mysql-server to see what happens: broker = PersistenceBrokerFactory.createPersistenceBroker(new PBKey(id)); I thought that a failing connection should throw an exception, but it does not. It is important for me to kn

Inner Join and Informix

2004-03-10 Thread [EMAIL PROTECTED]
Hi, I'm building an application with Informix 7.25 and RedHat 9.0 I have 2 tables : ventas and articulos, and I need make a ReportQuery that execute a similar SQL to "select sum(ventas) from ventas inner join articulos on ventas.idarticulo = articulos.id group by ventas.idarticulo". I see in th

Abstractclass: store with reference-descriptor in two tables

2004-03-10 Thread BOektem
Hi, i want to store a class which extends an AbstractClass in two Tables. For this, i tried it with the samle from apache.org. If a make an Query for Class B, i get the object and the superfields where filld. But if i try to to store B the table A where not filled. Can anyone help? package de.i