Re: Update Problem

2004-04-27 Thread Info
sitat Politecnica de Catalunya Centre Tecnologic de Transferencia de Calor On Tue, 2004-04-27 at 06:00, Info wrote: Hello, I am using following code to update a record: broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query

Update Problem

2004-04-26 Thread Info
Hello, I am using following code to update a record: broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(department); DepartmentDto result = (DepartmentDto) broker.getObjectByQuery(query); if (resul

Again, about query

2004-04-24 Thread Info
Hello guys, I have the following mapping: Thread <===> Message 1 <===> n I want get the whole set of Messages from Thread reference: - J2SE 1.4.2_04 + OJB 1.0 rc6 + Struts 1.1 + J2EE (just in classpath

Re: Exception from RsIterator

2004-04-24 Thread Info
instance and when RsIterator does not close all resources it may happend that RsIterator use the same connection as a concurrent thread and bad things can start happen ... You can find comments in RsIterator javadoc, in RsIterator source code and some posts at the user-list. regards, Armin Info wrote

Re: Exception from RsIterator

2004-04-23 Thread Info
y before I return. I guess OJB intend to minimize the database access from Iterator mode. Thanks, Wallace Info wrote: Hello Everybody! I am working through the week end. - J2SE 1.4.2_04 + OJB 1.0 rc6 + Struts 1.1 + J2E

Exception from RsIterator

2004-04-23 Thread Info
Hello Everybody! I am working through the week end. - J2SE 1.4.2_04 + OJB 1.0 rc6 + Struts 1.1 + J2EE (just in classpath) - I am geting a

Code in two table join

2004-04-23 Thread Info
Hello, I tried the following code to select a join, but get error: Criteria crit = new Criteria(); crit.addEqualToColumn("A.xxx", "B.xxx"); ReportQueryByCriteria q = QueryFactory.newReportQuery(A.class, crit); q.setAttributes(new String[] {

Re: OJB - Query for two table join

2004-04-22 Thread Info
... q.addGroupBy("A.xxx"); ... q.addOrderBy("B.zzz"); ... return broker.getReportQueryIteratorByQuery(q); // which returns an Object[] Hope it helps you, Enrique Medina. From: Info <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OJB - Query for t

OJB - Query for two table join

2004-04-21 Thread Info
Hi, For example, I have two table A and B. Now I want a combination collection of some field of A and some of B: SELECT A.xxx, A.yyy, B.zzz FROM A INNER JOIN B ON A.id = B.id I will get a colleciton as a result after open a query by using OJB, but how can I get the data (xxx, yyy, zzz) from a C

About Torque

2004-04-19 Thread Info
Hi guys, I am a newbie to Torque and OJB. I have couple beginner question: 1) As I download Torque packages I get torque-3.1.zip and torque-gen-3.1.zip. I know the *gen* is for generating java code and OR mapping xml, how does torque-3.1.zip work? 2) I have started my very simple testing on