Hi,  I'm using the latest stable hibernate and having a problem.  When I run this code:
Code:
if (! (pi instanceof dataobs.puzzleobs.Puzzle3))
{
   System.out.println("Found p3 as: " + pi);
}
The following is printed out:  
Code:
            Found p3 as: dataobs.puzzleobs.Puzzle3@175870a 
As far as I know pi is an instance of Puzzle3, but the code doesn't work. :(
Am I doing something dumb?  Obviously pi is loaded from the DB by Hibernate.  If you need the mapping documents, I'd like to simplify them before posting.  
Just a few notes:  
pi is loaded as part of a collection in another object.
The object that I reference in Hibernate (and my objects) is an interface not a base class.
Is there some way to print out what class an object really is?  The toString() seems to say Puzzle3, but I assume it could have been overridden by something that Hibernate does.
Thanks!
Nick