[OJB-developers] CollectionDescriptor and Class.Extent
Brought to you by:
thma
From: Amit G. <ago...@de...> - 2002-04-26 17:55:30
|
There seems to be a bug in ObjectBridge's handling of collection descriptors whose items class has "extent" types defined. In PersistentBrokerImpl's retrieveCollection method definition, the fkQuery object is initialized with the table names from the items.class's descriptor. Now, if the items.class contains it's own extent definitions, the Broker attempts to use the same query object to select the subclasses's fields (in getCollectionByQuery method, PersistenceBrokerImpl:969). Now, let's say that I've mapped the subclass to a different table than the parent. Since the table name in the query object is not updated with the one associated with the subclass, a SQLException is generated every time (invalid column name). This problem is relatively hard to describe. If I'm not making myself clear, please ask for further clarifications. Thank you, Amit Gollapudi |