0

I realize custom repository and try because we use Spring Data Jdbc 2.7 which is not supporting InsertOnlyProperty and in SQL generation I try to get class of sub aggregation for using in context.getRequiredPersistentEntity. How can I get it from RelationalPersistentProperty?

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
Khusayn
  • 37
  • 6

1 Answers1

1

How can i get it from RelationalPersistentProperty?

getComponentType()

As the documentation says:

Returns the component type of the type if it is a Collection. Will return the type of the key if the property is a Map.

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348