I want to test some code involving transactions and optimistic locking. I''d much prefer to avoid testing this a database, instead I''d like to mock, say, the database connection. Has anyone done this and can share how to do it? Michael -- Michael Schuerig Those who call the shots mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org Are never in the line of fire http://www.schuerig.de/michael/ --Ani DiFranco, Not So Soft