You can not search the fields with "timestamp" type because it did not support the getHashCode method. However, you can try to use the "calendar" type. I have no idea whether this solution is work for you or not but you can give it a try because there is no way to make it possible as long as you are using the timestamp type. You may refer to the entry
http://forum.hibernate.org/viewtopic.php?p=2239206 to see how I resolved it in my case which is the case of trying to include a timestamp field in composite-id.