So I have this following code:
Query query = session.createQuery(\"from Weather\"); List list = query.list(); WeatherModel w
Query query = session.createQuery("from Weather"); //You will get Weayher object List list = query.list(); //You are accessing as list
They both are different entities
Query query = session.createQuery("from Weather"); List list = query.list(); Weather w = (Weather) list.get(0);