Currently I work on some ejb project, I need to have Data and Time in the ejb, if a bean has a field call login date and login time, it is alright to create a ejb-ql to find a collection of object later than a specifical datetime? If it can, how to write that query.