regression with use of alias in ReportQuery setAttributes?

2004-07-01 Thread cassio . souza
Hi, I have some queries that used to work fine with OJB 1.0.RC6 and that fail with OJB 1.0.RC7 and 1.0.0 (see sample below). With RC6 I could use an alias to access an attribute to be added to the list of attributes to be retrieved by my report query (method setAttributes) and the generated SQ

Bug in PersistentFieldIntrospectorImplNew

2004-07-01 Thread Luis Cruz
Hello, When using PersistentFieldIntrospectorImplNew I get the following error: Caused by: org.apache.ojb.broker.metadata.MetadataException: Can't find member 'myProperty' in somePackage.MyClass at org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.computeField(Unknown S

Re: OQL Querys heeeeelp!

2004-07-01 Thread Auckyboy
I'll take a stab at it. when performing OQL queries using OJB, you get back the complete object A with references to B, C and further objects if they exist otherwise they are null. Assuming you have the following objects.. A{ B b; int bId; C c; int cId; } and C{ D d; int dId; } D{ id; nam

RE: Date formatting in OJB?

2004-07-01 Thread Guillaume Nodet
> > When I obtain a date throw OJB its format changes from the original > configured in the DB. I mean my postgres DB is set to show dates > in a "dd/mm/" format an OJB shows a "-mm-dd" format. > Is there anyway to configure OJB to work with a particular date format > or do I have to do th

wrong SQL generated when use path expression for extent with Multiple Joined Tables

2004-07-01 Thread Clóvis Wichoski
Hi, I'm getting wrong results when executing a Query with Criteria that uses path expression for extent with Multiple Joined Tables: The QueryByCriteria from class myproject.User where [myCompany.shortcut = COMPANYX, [login = UserX]] The expected result is that returns only the User of COMPANY

OQL Querys heeeeelp!

2004-07-01 Thread Martin I. Levi
Hi! Well, here I am with the ODMG 3.0 book trying to perform OQL querys through OJB but I really think I just dont get it. Lets suppose I have a table A with FK to B and C where C has a FK to D Something like this: B / A \ C \ D Which are mapped to the objects A, B, C and D. Now I w

Re: Date formatting in OJB?

2004-07-01 Thread Jakob Braeuchi
hi martin, ojb does not use the dateformat defined in the database. jakob Martin I. Levi wrote: Hi! When I obtain a date throw OJB its format changes from the original configured in the DB. I mean my postgres DB is set to show dates in a "dd/mm/" format an OJB shows a "-mm-dd" format. Is th

Re: criteria.addEqualTo("date", date);

2004-07-01 Thread Jakob Braeuchi
hi jamo, the comparison is done in sql not in java. jakob Jamo Smith wrote: Hey Folks! I ran into a problem tonight trying to return a list of entries that match a specific date. For testing purposes I am passing a date object into addEqualTo that I built like this: Date date = new Date(); date.

Date formatting in OJB?

2004-07-01 Thread Martin I. Levi
Hi! When I obtain a date throw OJB its format changes from the original configured in the DB. I mean my postgres DB is set to show dates in a "dd/mm/" format an OJB shows a "-mm-dd" format. Is there anyway to configure OJB to work with a particular date format or do I have to do this throu

QUESTION : [ann] new release: OJB 1.0

2004-07-01 Thread Janssen, Roger
Hi, in the release notes it says : "Batch handling doesn't work proper with optimistic locking. This will be fixed before long after 1.0" What exactly does this mean? Does it mean that when i have a persistence broker transaction, and within that transaction i do save several objects, and one of

Re: problem compiling

2004-07-01 Thread Thomas Dudziak
[EMAIL PROTECTED] wrote: Thank you Thomas, I didn't remember seeing that in the release notes, but I should have figured it out. Not too familiar with Forrest yet. Upon recompiling, however, I was getting this new error below. I am too sleepy to figure it out tonight, but likely something just t

RE: [ann] new release: OJB 1.0

2004-07-01 Thread Janssen, Roger
Congratulations guys (and girls???) !!! -Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 4:08 PM To: OJB Developers List; OJB Users List (E-Mail) Subject: [ann] new release: OJB 1.0 Dear all, I'm very happy to announce the final 1.0 releas

Re: problem compiling

2004-07-01 Thread jeichels
Thank you Thomas, I didn't remember seeing that in the release notes, but I should have figured it out. Not too familiar with Forrest yet. Upon recompiling, however, I was getting this new error below. I am too sleepy to figure it out tonight, but likely something just trivial I am missing.