fixed joda datetime for hibernate 4.0+
fixed NPE on collections