title: org.hibernate.HibernateException: Unable to call class com.glovoapp.seocontent.command.citystore.model.CityStorePageJoinData constructor
body: <p>I was creating the SQL Mapping for a class and I am getting the above-mentioned error
  Keep in mind that I am not getting unable to locale Appropriate Contsturtor so I don't think the problem is with providing the Constructor. I think it is related to accessing the Constructor.</p>
  <pre><code>SqlResultSetMapping(
          name = &quot;CategoryAndFilterJoinTableMapping&quot;,
          classes = (
              arrayOf(
                  ConstructorResult(
                      targetClass = CityStorePageJoinData::class,
                      columns = (
                          arrayOf(
                              ColumnResult(name = &quot;id&quot;, type = Long::class),
                              ColumnResult(name = &quot;slug&quot;, type = String::class),
                              ColumnResult(name = &quot;category_id&quot;, type = Long::class),
                              ColumnResult(name = &quot;name&quot;, type = String::class),
                              ColumnResult(name = &quot;translations&quot;, type = String::class),
                              ColumnResult(name = &quot;filter_id&quot;, type = Long::class),
                              ColumnResult(name = &quot;filter_name&quot;, type = String::class),
                              ColumnResult(name = &quot;translated_name&quot;, type = String::class)
                          )
                          )
                  )
              )
              )
      )
  )
  </code></pre>
  <pre><code>NamedNativeQuery(
          name = &quot;findAllCategoryandFilterDataQuery&quot;,
          resultSetMapping = &quot;CategoryAndFilterJoinTableMapping&quot;,
          query = &quot;select command_stores.id,\n&quot; +
              &quot;       command_stores.slug,\n&quot; +
              &quot;       cc.id as category_id,\n&quot; +
              &quot;       cc.name,\n&quot; +
              &quot;       cc.translations,\n&quot; +
              &quot;       filter_id,\n&quot; +
              &quot;       filter_name,\n&quot; +
              &quot;       translated_name\n&quot; +
              &quot;from command_stores\n&quot; +
              &quot;    left join command_categories cc on command_stores.category_id = cc.id\n&quot; +
              &quot;    left join command_stores_filters csf on command_stores.id = csf.store_id\n&quot; +
              &quot;    left join filter_details fd on fd.id = csf.filter_id\n&quot; +
              &quot;where command_stores.id in ?1&quot;,
          resultClass = CityStorePageJoinData::class
      )
  )
  </code></pre>
  <pre><code>package com.glovoapp.seocontent.command.citystore.model
  
  import com.glovoapp.seocontent.model.StoreId
  import com.glovoapp.seocontent.query.model.Entity
  import kotlinx.serialization.Serializable
  
  @Serializable
  class CityStorePageJoinData(
      val storeId: Long,
      val storeSlug: String,
      val categoryId: Long,
      val categoryName: String,
      val categoryTranslation: String,
      val filterId: Long,
      val filterName: String,
      val filterTranslation: String
  ) : Entity&lt;StoreId&gt; {
  
      override fun getKey(): StoreId {
          return StoreId(storeId)
      }
  }
  </code></pre>