What is the type of marriage identified by Hibernate jpa? Why is my throwing type conversion exception?

the data found is a collection of the corresponding types of tables, which can be received. But when traversing, you will run out of ClassCaseException

.
Mar.14,2021

Table field and entity class code paste


query two or more fields. By default, the list collection is returned. The list collection encapsulates Object [], and the length is the same as the number of fields queried.
Return the query results as a List. If the query contains multiple results pre row, the results are returned in an instance of Object [].

Menu