worley
hi chris,
please post the sql with and without the hints.
jakob
Chris Worley schrieb:
Actually I don't think this problem is directly related to class
hints. In a previous thread Armin mentioned to me that there was a
but that will be fixed in the next released
previouse email from
for the clarification. I see now in the example that it is
referencing a field in the extended table.
-chris worley
hi chris,
adding a path class makes only sense when you hava a path in your query.
ie:
crit.addEqualTo(contactMech.something, on other thing);
crit.addPathClass(contactMech, CPhoneNumber.class
of the process then I get the
exception. Sounds like it works fine when the objects are cached, but
thats just an assumption.
I also stopped using a the dynamic proxy for PartyContactMech.
-chris worley
I have a similar error when using. I am able to set fields with other
objects when retreiving
auto-update=true
foreignkey field-ref=partyId/
/reference-descriptor
/class-descriptor
thanks
-chris worley
the whole stack trace with complete error log?
regards,
Armin
Chris Worley wrote:
I have now removed proxy=dynamic from all my class descriptors and
I no longer get the exception.
After doing some testing. I am finding that sometimes I get the
exception, sometimes it works and sometimes
Armin,
My ojb version is 1.0.3.
-chris worley
Armin,
Here is the complete output at the time the service is invoked. For
this I have set all proxies back to dynamic in the class descriptors.
If I comment out the reference to the contactMech the party reference
gets populated just fine
Armin,
I removed the dynamic proxy from the class descriptors and every thing
works fine. I have not studied them enough to undertand how to handle them.
-chris worley
Hi,
ok, now we have a more detailed error message:
[PersistentField] ERROR: while set field:
[try to set 'object value
I am having a problem with class hints. They do not seem to work all
the time with my configuration. If the PartyContactMech object is
stored in the same instance of the server process that I retreive it in
PartyContactMech.contactMech is populated with an instance of
CPhoneNumber or
from CVS) and
CParty party = (CParty) getBroker().getObjectByIdentity(oid);
will always return the correct object instance (CParty, CPartyGroup
or Person) and you can directly cast to the real party type.
-chris worley
I am having a problem with class hints. They do not seem to work all
field-ref=partyId/
/reference-descriptor
/class-descriptor
thanks
-chris worley
org.apache.ojb.broker.PersistenceBrokerException: Error invoking method
afterLookup
at
org.apache.ojb.broker.core.proxy.IndirectionHandlerDefaultImpl.invoke(Unknown
Source
not see the change in tableB.a_id. When
table b is stored the value for a_id remains unset with the value of 0
even though tableB.tableA.a_id has the value set to 1 or whatever it was
assigned.
-chris worley
-
To unsubscribe
geez... sometimes when you stare at xml to long the its hard to find the
simplest mistakes.
I did not have the foreignkey tag in my reference descriptor.
problem solved
-chris worley
I have a problem where the forgein key ids are not set in the object
or db after the forgein object has
(personId);
setParameter(party, person);
}
else
{
setParameter(party, party);
}
-chris worley
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have found my problem. I was using the extent tag for in the
descriptor for party referencing PartyGroup and Person. After removing
the extent the correct instance is returned.
-chris worley
In the following code I get a ClassCastException when querying for the
PartyGroup or Person
Armin,
Hi Chris,
Chris Worley wrote:
In the following code I get a ClassCastException when querying for
the PartyGroup or Person. PartyGroup and Person both extend Party.
Party.partyTypeId will determine if the party is a person or party
group. If the party is one of the two then I
15 matches
Mail list logo