hi,

there is a problem with odmg (and otm as well, i expect) when an object is removed from a collection of a relationship:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=14594

although the collection is removal-aware the removed object is _not_ deleted because afterStore() is only called when auto-delete is true.

this change was done by myself, but i'm no longer sure it is ok like this :(

jakob

Armin Waibel schrieb:

Hi Martin,

Martin I. Levi wrote:

Well, I have an application on rc5 where everything works well and
another application on rc7 which is giving me problems. When I update
(through ODMG) an object with 1:1 references, the changes on these are
not updated.
Im comparing both applications to find out what happens but I still dont
know.


difficult to guess what's going wrong. Fixed some spots in ODMG implementation which could be responsible for this behavior.
Please try the latest from CVS OJB_1_0_RELEASE branch (next maintenance release is coming soon)
or see
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=8991


to fix your version manually.

If this doesn't solve your problem, please try to write a test case or modify an existing one to show the issue.

regards,
Armin

On Wed, 2004-09-29 at 15:20, Robert r. Sanders wrote:

As I understand it both the OTM and ODMG implementations do this internally, so you must turn it off at the persistance-broker level. I have tried OTM (I don't particularly care for the ODMG API) but as I want to use the Spring framework I decided to stick w/ the PersistanceBroker for now.

Martin I. Levi wrote:


Hi Armin,

I see in the documentation that I cannot use auto-update=true with ODMG.

Is there any way to get OJB working this way:

auto-retrieve=true
auto-update=true
auto-delete=false

through OTM ? suggestions are welcome!


On Mon, 2004-09-27 at 18:24, Armin Waibel wrote:



Hi Martin,

about repository.dtd
http://db.apache.org/ojb/docu/guides/repository.html


the auto-xxx settings
http://db.apache.org/ojb/docu/guides/basic-technique.html#Setting+Load%2C+Update%2C+and+Delete+Cascading



and as sub-section in 1:1, 1:n .... section, e.g.
http://db.apache.org/ojb/docu/guides/basic-technique.html#1%3A1+auto-xxx+setting




regards,
Armin






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to