Nov/05
4
“Hibernate – A Developers Notebook” – migrating to Hibernate 3.0, Chapter 7
No comments · Posted by Administrator in Java
Chapter 7 is working in Hibernate 3 (as opposed to chapter 6). The most challanging in this chapter migrationwise are StereoVolumeType.java and SourceMediaType.java . Change the import-package names. The Usertype-stuff is now under the package "org.hibernate.usertype". It won't compile, yet as there are some methods missing. For SourceMediaType.java:
JAVA:
-
-
throws HibernateException {
-
-
return original;
-
}
-
-
}
-
-
Object owner)
-
{
-
// Our value type happens to be serializable, so we have an easy out.
-
return deepCopy(cached);
-
}
-
-
For StereoVolumeType.java:
JAVA:
-
-
Object owner)
-
throws HibernateException {
-
-
return deepCopy((StereoVolumeType)original);
-
}
-
-
-
throws HibernateException {
-
-
return original;
-
}
-
That's it.
