Durham David Contr 805 CSPTS/SCBE wrote:
I have an object, where the PK value is a concatenation of a propertyagree, only solution I know.
and an autoincrementing value. To me it looks like I should write my
own SequenceManager and Sequence, which I've done.
Now the tricky part,
how do I setup (configure or extend) OJB so that the "target" object is
passed to my sequence manager. To me it looks like I have to write my
own broker, but still I don't see where getUniqueLong(FieldDescriptor)
is being called.
You search for the wrong method. Maybe it's a little confusing if you inherit from AbstractSequenceManager. SequenceManager interface has a method called 'getUniqueValue(FieldDescriptor field)' this method was called in BrokerHelper#getAutoIncrementValue
hmm, you need the 'target object' generate the UID, I think that's really painful to implement, because currently OJB don't presupposeI need to somehow get to getUniqueLong(FieldDescriptor fd, Object target).
the existence of an 'target object' to generate the UID.
Do you really need read from the targetObject to generate your UID?
regards, Armin
Any ideas?
Dave
--------------------------------------------------------------------- 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]
