[OBJ 0.9.7, singlevm]

Hi,

  I failed to enable the property "SequenceManagerRepository" (I need it so
I can use the sequence management with a different datasource). Although it
parses the file correctly, it fails to find the relevant descriptor for the
sequence.

>From what I could figure out, it looks like a bug(?) and here's why:
The problem occurs when creating a new Identity(obj) object without
supplying the sequence-specific PersistenceBroker.
It occurs (as far as I could figure out) in two places:
- SequenceGenerator tries to create a new Identity for the object, it calls
Identity(obj). Fixing it is trivial.
- It also repeats when trying to store the updated sequence object to the DB
and calling cache(Object) that creates a new Identity() object w/o the
specialized PB. This is more problematic because the cache object doesn't
know it is now working with a different PB and tries to use the default one.
Two solutions: couple each PB with the cache (and vice versa) or always give
the oid to the cache.

Any suggestions?

Thanks,
Tal

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

Reply via email to