First try to migrate to hibernate 3.
Does not work at the moment because xdoclet genarates old mappings.
The queries should be reviewed.
org.hibernate.classic.Session is used, should be changed to org.hibernate.Session.
Check other points on http://www.hibernate.org/250.html