Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.0.5
Mapping documents:
-
Code between sessionFactory.openSession() and session.close():
-
Full stack trace of any exception that occurs:
-
Name and version of the database you are using:
MS SQL Server 2000
The generated SQL (show_sql=true):
-
Debug level Hibernate log excerpt:
Hello!
I've created a MS SQL Server user type, SqlServerGuid.java and SqlServerGuidUserType.java.
My problem is that when I create a SqlServerGuid with the GUID string in upper case Hibernate seems to be unable to load the associations?! I'm using the Session.get(Class, Serializable) method.
When I create a SqlServerGuid with the GUID string in lower case, Hibernate successfully loads the associations!
According to the log it seems like Hibernate have all GUID's in lower case, is this an internal thing in HIbernate - converting GUID from database to lower case?
The +equals(o:Object):boolean method in SqlServerGuid.java uses +equalsIgnoreCase(o:Object):boolean.
I could post the entire code, but I'm posting just to get a quick answer if anyone recognize this problem?
Kind regards, Andreas
PS. At the moment I haven't implemented equals/hashCode in my domain objects, could this have something to do with it?