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
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
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
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
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
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
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,
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
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