So I have this following code:
Query query = session.createQuery(\"from Weather\"); List list = query.list(); WeatherModel w
Weather will be a different entity than WeatherModel. your list will have Weather objects, it can be only cast if it is sub-type of WeatherModel