code for start/stop index to work for reportquery

2003-09-10 Thread Chiah Tong Kiat
Hi Ive made some changes in PersistenceBorkerImpl.java to implement start/stop index in the getReportQueryIteratorByQuery method. Im not too sure if this is inline with your convention. Pls review them Thanks Tong kiat

RE: How to use DUAL

2003-09-10 Thread Charles Anthony
Hi Edson, You say you're working client-server with OJB. Assuming that you do all the persisting on the server side (i.e. OJB only used on the server), you could use a PBListener for BeforeUpdate/Insert events, and set the datetime then (using a java.sql.Date). If you really just want to

Re: code for start/stop index to work for reportquery

2003-09-10 Thread Sanjeet
Hey Tong Kiat, Good to see you on this mailing list. Remember me? How are things at Silicomp? How long have you been part of OJB? Cheers Sanjeet Joshi - Original Message - From: Chiah Tong Kiat To: OJB Users List Sent: Wednesday, September 10, 2003 2:14 PM Subject: code for

Re: Transactions with PB-API

2003-09-10 Thread Roland Carlsson
Hi Lasse! You get several instances of PersistenseBroker. Each broker handles on transaction at a time. the broker have tre methods to handles transactions.. beginTransaction(); broker.commitTransaction(); broker.abortTransaction(); Regards Roland Carlsson - Original Message -

Re: How to use DUAL

2003-09-10 Thread Edson Carlos Ericksson Richter
I realized. The getBroker then getConnection is the way. Thanks for tips from everyone. Edson Richter - Original Message - From: Charles Anthony To: 'OJB Users List' Sent: Wednesday, September 10, 2003 3:35 AM Subject: RE: How to use DUAL Hi Edson, You say you're

Proxy question

2003-09-10 Thread Joerg Lensing
hi all, when using dynamic proxies, do i allways have to use the the interface to access the objects? What do I have to change in the code to switch from real classes to proxies? joerg - To unsubscribe, e-mail: [EMAIL

Re: Repost : NullPointerException in hashCode

2003-09-10 Thread Sebastien Cesbron
Ok, I removed the hashCode too and OJB works well. But my hashCode was based on my object's pk. Now I have some problems putting my objects in a HashMap. So what can I do now ? Is this a bug that will be corrected or is it a known problem that will remain unchanged in the future ? Seb

proxy question

2003-09-10 Thread Joerg Lensing
Hi all, do I have to reference all persistent (and mapped) objects by their interface if i want to use proxies? thanxs joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Criteria in and equals with references

2003-09-10 Thread Michael Becke
Hello, I am wondering what is the best way to handle Criteria.addEqualTo() and Criteria.addIn() when the field contains an object referenced from another table. For example. class-descriptor class=A table=TABLE_A field-descriptor name=bId column=B_ID

RE: proxy question

2003-09-10 Thread Charles Anthony
In a word, Yes. Cheers, Charles. -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] Sent: 10 September 2003 11:15 To: OJB Users List Subject: proxy question Hi all, do I have to reference all persistent (and mapped) objects by their interface if i want to use proxies?

Re: proxy question

2003-09-10 Thread Joerg Lensing
Joerg Lensing wrote: hi charles, ok, but how can I know do i get the real class? (instanceof doesn't work.. don't know why9 e.g. if (pPartnerPO instanceof PersonIF) -- returns true, but should be false!! sorry: should be if (partnerIF instanceof PersonIF) { joerg

RE: proxy question

2003-09-10 Thread Charles Anthony
Hi, I don't actually use DynamicProxies (I do use them elsewhere, just not in in OJB), so I can't be much more help - but... The whole point of proxies is that you *shouldn't* get to the real class. You should always talk to the proxy, and the proxy talks to the real object. If you nead to expose

RE: code for start/stop index to work for reportquery

2003-09-10 Thread Matthew Baird
Hi, your code attachement did not come through. Can you email me the classes on my personal account and I'll integrate them. -Original Message- From: Chiah Tong Kiat [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 11:15 PM To: OJB Users List Subject: code for start/stop

Re: Criteria in and equals with references

2003-09-10 Thread Jakob Braeuchi
hi mike, you can not use a whole object in a criteria, you'll have to use a single attribute (ie. b.name). hth jakob Michael Becke wrote: Hello, I am wondering what is the best way to handle Criteria.addEqualTo() and Criteria.addIn() when the field contains an object referenced from another

Re: ReportQueryByCriteria and Extents problem

2003-09-10 Thread Jakob Braeuchi
hi, imo both features are a problem on some databases: afaik subselects do not yet work in mysql and union is not supported in hsqldb. jakob Edson Carlos Ericksson Richter wrote: I think UNION is not a problem, but using a SELECT in a FROM clause could be. In any way, I've changed my code to

Re: Join tables that has fields with same name

2003-09-10 Thread Jakob Braeuchi
hi istvan, this looks like a problem in your mapping. if ojb finds descriptors for the fields it prefixes them with a table alias (a.name). if no field is found the name from the criteria is used. hth jakob Viczin Istvn wrote: Hi, I would like to join two table, and they are in 1:n relation,

Re: Criteria in and equals with references

2003-09-10 Thread Michael Becke
Works for me. Thank you. Mike Jakob Braeuchi wrote: hi mike, you can not use a whole object in a criteria, you'll have to use a single attribute (ie. b.name). hth jakob Michael Becke wrote: Hello, I am wondering what is the best way to handle Criteria.addEqualTo() and Criteria.addIn()

Xdoclet: How to use base-class properties with different column n ames in children?

2003-09-10 Thread Clute, Andrew
So, let's say I have a base class 'BusinessObject' with a property called 'guid' So, I have two classes, both extend BusinessObject, named 'dog' and 'cat'. My database (which already exist), has a field in the tbl_dog table called dog_guid, and the tbl_cat has cat_guid. Before using Xdoclet to

RE: Xdoclet: How to use base-class properties with different colu mn n ames in children?

2003-09-10 Thread Clute, Andrew
Ok, well I figured out that the version of Xdoclet-ojb that comes compiled with RC4 does not have this feature in it. I downloaded the most recent jar from CVS, and now it works, sort of. If it put my @ojb.field description in the class comment, it will now had the field-description, but now it

Can't find xdoclet ojb module

2003-09-10 Thread Neil Aggarwal
Hello: I can't find the OJB module for XDoclet. Does it still exist? Where should I look? Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! =

New to OJB

2003-09-10 Thread Sanjeet
Hi, I am new to OJB. I tried to look for docs on OJB at Jakarta but got nothing like a tutorial. Could anyone point me the some good beginners reading material. Or if possible kindly provide some sample source code? Sanjeet

New to OJB

2003-09-10 Thread TereschenkoVA
Return Receipt Your New to OJB documen t: