Report Query Issue

2003-08-17 Thread casterx
I am trying to select a single column from a mapped table using a ReportQuery. Here is my code: Criteria criteria = new Criteria(); ReportQueryByCriteria query = QueryFactory.newReportQuery(TeamCode.class,criteria); query.setColumns(new String[] {"teamCode"}); System.out.println(broker.getCollect

WebSphere and Class Reloading

2003-07-09 Thread casterx
After version 0.97 (I believe) of OJB, WebSphere started to require full server resert in order to get OJB to catch up on the reloaded classes. I sent a note to IBM tech support and here's what they came up with. I hope this information is usable to you guys. Following is the update from our L3 t

OJB and Database autonumbers

2003-06-23 Thread casterx
I'm working on a database that manages its own primary key ids via triggers. What's the best way to have OJB co-exist with it? I know it won't be a problem to retrieve records, but what should I do right after I store new objects since the PKs will be out of synch due to the new ID written in the d

Update objects suggestion

2003-05-29 Thread casterx
After using OJB on a number of web projects, I keep encountering the same problem of updating partial object data from a struts form. for example, an object might contain 10 fields, with one PK and a few FKs. the form however, only contains 5 fields. Since the update action doesn't get a hold of th

Re: Query builder for OJB

2003-03-10 Thread casterx
Take a looka t QueryByCriteria Caster - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 6:33 AM Subject: Query builder for OJB Hello, Is anyone that use OJB know something about a query builder that could create a query automatically bas

Re: update setting FK to null

2003-03-05 Thread casterx
Tim, OJB after .9.7 started to set the FK to null if the actual reference object is null at the time of storage. This behavior broke my programs and I had to comment out that line from the assertFK...() function inside PersistaeceBrokerSingleVM. I suggested making this an optional trait, to be se

Re: ojb 0.9.9 and Oracle with conversion problem.

2003-02-19 Thread casterx
Armin, While you check that, I encountered a similar bug. My conversion functions were not getting executed when the field was set to primarykey=true. Caster - Original Message - From: "Armin Waibel" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 18,

Re: Accessing connection information in OJB 0.9.9

2003-02-11 Thread casterx
try broker.serviceConnectionManager().etConnectionDescriptor() Hope that helps Caster - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 9:53 AM Subject: Accessing connection information in OJB 0.9.9 > We used to be able to do this to

.9.9 Field conversion on primary keys Error

2003-02-10 Thread casterx
I just upgraded to .9.9 and started to encounter a conversion bug. If a field is set as a primary key, the conversion routines are not executed. I added a printline to "org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldCon version" Whenever primarykey=false, the statement get