Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Date now = new Date();
- Session session = User.getSession();
- Transaction transaction = null;
- try {
- transaction = session.beginTransaction();
- String hql = "FROM Booking";
- Query query = session.createQuery(hql);
- List<Booking> bookingList = query.list();
- List<Booking> orderedList;
- for(int i =0; i<bookingList.size();i++){
- }
- transaction.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement