Hello,
I have a small problem wich looks like this:
I defined a table/class Book and a related one called Author.
I build a user interface component wich is a listener
(observer-observable-pattern) to Book. Book holds a HashSet of
listeners (initialized in the constructor of Book). If eg. the
title of the Book changes an event is fired and propagated to
the user interface. So much for the theory.
Now I do this:
1. I ask the BookPeer for a list of all Books. I get, say:
'Book A', 'Book B' and 'Book C'
2. I ask an Author for his Book. I get eg. 'Book A'
Now I expect 'Book A' - wether got from the Peer or the Author -
to be the same object. BUT it looks like the constructor of
'Book A' is called two times. With the result that all listeners
registered with 'Book A' are "purged".
Hence, my questions:
- Is there exactly one object instance for one database entry?
- Where do I find some documentation about object instanciation
in Torque?
- What else may be the problem?
- Or, am I just not smart enough for all this?
Thanx in advance.
Christoph
--
-----------------------------------------------------------------------
Christoph Priebe
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>
- Re: Is there one object instance for one database entry? Christoph Priebe
- Re: Is there one object instance for one database en... Peter S. Hamlen
