You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Da...@equifax.com on 2003/04/03 23:07:40 UTC
StackOverflow
Is it acceptable for OJB to cause a StackOverflow Exception (infinite
recursion)? I get this when I do refresh="true" on bidirectional
references. The problem isn't there if you don't say refresh, but in that
case, OJB doesn't produce reliable/consistent data.
David
This message contains information from Equifax Inc. which may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited. If you have
received this transmission in error, please notify by e-mail
postmaster@equifax.com.
Re: StackOverflow
Posted by Thomas Mahler <th...@web.de>.
IMO yes!
It's the users responsibility to carefully check the semantics of the
mapping repository.
If you define a cyclic structure OJB has no problem. But if you define a
rule "if A is Loaded then refresh also the referenced B object" another
rule "if B is Loaded then refresh also the referenced A object" OJB will
do exactly what you told it to do!
Other O/R tools like TopLink behave similar!
cheers,
Thomas
David.Corbin@equifax.com wrote:
> Is it acceptable for OJB to cause a StackOverflow Exception (infinite
> recursion)? I get this when I do refresh="true" on bidirectional
> references. The problem isn't there if you don't say refresh, but in that
> case, OJB doesn't produce reliable/consistent data.
>
> David
>
>
> This message contains information from Equifax Inc. which may be
> confidential and privileged. If you are not an intended recipient, please
> refrain from any disclosure, copying, distribution or use of this
> information and note that such actions are prohibited. If you have
> received this transmission in error, please notify by e-mail
> postmaster@equifax.com.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
Re: StackOverflow
Posted by Oki DZ <ok...@pindad.com>.
On Thu, Apr 03, 2003 at 04:07:40PM -0500, David.Corbin@equifax.com wrote:
> The problem isn't there if you don't say refresh, but in that
> case, OJB doesn't produce reliable/consistent data.
Question is, can we expect that consistency is the responsibility of
OJB? I think db consistency should be done at the db level (using
triggers).
Oki