java.lang.ClassCastException: java.util.HashMap cannot be cast to cn.x8p.db.entity.place.WaySearchPlaceMessage

Google Groups | George Wu | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    native query, why I got hashmap instead of an entity

    Google Groups | 9 months ago | George Wu
    java.lang.ClassCastException: java.util.HashMap cannot be cast to cn.x8p.db.entity.place.WaySearchPlaceMessage

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.HashMap cannot be cast to cn.x8p.db.entity.place.WaySearchPlaceMessage

      at cn.x8p.sql.place.message.result.Update.find()
    2. cn.x8p.sql
      Geohash.search
      1. cn.x8p.sql.place.message.result.Update.find(Update.java:45)
      2. cn.x8p.sql.place.message.list.Geohash.search(Geohash.java:62)
      2 frames