Use jpa repository and datamanager together

Jpa respository provides many other features that are not provided by Datamanager like datamanager has no method to deleteAll rows of a table but jpa has a deleteAll method.
So how to use both jpa and datamanager together in jmix application. When jpa repository class is declared error is throwing like the bean is already declared.
Consider in my case if there is a report_data table and i declared a ReportDataRepository but when i tried to run application it shows bean with name reportdatarepository already exists

Hello, @kiran.ouseph!

Please, use “Jmix Data Repositories” instead: just implement io.jmix.core.repository.JmixDataRepository, no bean definition needed.

See jmix/CustomerRepository.java at master · jmix-framework/jmix · GitHub and other repositories in the package for usage examples.

“Jmix Data Repositories” is an implementation of Data Repositories based on DataManager, which allows to use all convenient methods like deleteAll and supports all DataManager features like soft deletion, dynamic attributes, security constraints, entity logs, etc.

Jpa Repositories is not recommended for use in Jmix because it conflicts with Jmix Data Repositories.

Best regards,
Dmitry

Thanks @taimanov Dmitry Taimanov
issue solved