Hi
Further to my earlier email I think I have managed to fix this (at least it
works for my problem and the unit tests
all run succesfully on SQL Server, except the ones that fail on foreign key
constraints in the distribution
FYI:
- testGetB (relatedA not found)
- testDeleteB
- testCreateWithoutRelatedObject
Anyway, onto the fix. I had to make minor changes (mostly to do with
recursion) in 3 classes:
- SequenceGenerator
- SequenceManagerHiLoImpl (tat is the only sequence tye I use)
- DescriptorRepository
They are attached. My changes are prefixed by a comment line
// Note! MAR
One change to note is that rather than using teh table name in the
OJB_HL_SEQ table I now use the last 175 chars of the
fully qualified class name (if the name of the class is more than 175 chars
long) of the top level extent.
E.g. in my previous email the interfacve at the top of my hierarchy is
com.credittrade.instrument.Instrument and this
is now used in the OJB_HL_SEQ table.
These source files are from the 0.9.6 release -- I am pretty sure they have
not changed in 0.9.7 (which I jave not yet built)
I woudl be grateful if someone could merge these changes into the source
tree if
(a) they are correct
(b) and they have no unforseen side-effects e.g. performance and so
on
(c) and if you want to!
Many thanks
Mark Rowell
----------------------------------------------------------------
Mark Rowell
CreditTrade
T: +44 (020) 7400 5078
M: mailto:[EMAIL PROTECTED]
CreditTrade Limited is regulated by the FSA. (c) CreditTrade 2002. All rights
reserved. The information and data contained in this email is provided for the
information purposes of the addressee only and should not be reproduced and/or
distributed to any other person. It is provided without any warranty whatsoever and
unless stated otherwise consists purely of indicative market prices and other
information.
Any opinion or comments expressed or assumption made in association with the data or
information provided in this email is a reflection of CreditTrades judgement at the
time of compiling the data and is subject to change. CreditTrade hereby makes no
representation and accepts no responsibility or liability as to the completeness or
accuracy of this email.
The content of this email is not intended as an offer or solicitation for, or
recommendation of, the purchase or sale of any financial instrument, or as an official
confirmation of any transaction, and should not be construed as investment advice.
DescriptorRepository.java
Description: Binary data
SequenceManagerHiLoImpl.java
Description: Binary data
SequenceGenerator.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
