org.hibernate.WrongClassException: Object with id: 10000 was not of the specified subclass: A (Discriminator: D)

Hibernate JIRA | Martin Schulz | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. org.hibernate.WrongClassException

      Object with id: 10000 was not of the specified subclass: A (Discriminator: D)

      at org.hibernate.loader.Loader.getInstanceClass()
    2. Hibernate
      Loader.getInstanceClass
      1. org.hibernate.loader.Loader.getInstanceClass(Loader.java:1445)[ the error itself is also quite misleading, as the row is exactly of / for the specified class A. But there simply was no subclass found ]
      1 frame