Hi all I seem to have a bit of an issue with my objects getting cached that are retrieved from persistence storage using OJB.
I have a Category & Product tables. Category bean contains getter method that retrieves a Vector of products that belong to that Category. Product class contains categoryId field as FK indicator. My repository_user.xml contains "collection-descriptor" in Category class/table mapping to Product table FK. <collection-descriptor name="allProductsForCategory" element-class-ref="com.baroko.ebiz.model.Product" > <inverse-foreignkey field-ref="categoryId"/> </collection-descriptor> Now all this works in my application, but when it comes to adding a new value object or deleting an existing one, the action gets performed in the DB but doesn't reflect in my system (Only when I restart my application will change show). It appears that the method I call returns relevant Category but when I call getAllProductsForCategory() on it, it returns the same Vector as before. It should return Vector of Products with changes reflected in DB. Note as I said this issue only is applicable to insert and delete statements not update! When I do an update on my value object, it reflects the change in my system. Strange...:) What could the problem be? Any help will be much appreciated. --Alen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
