Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.7.0
-
None
-
None
Description
I want to use Deltaspike Data Repo as a Service because it is simplistic and not DAO.
Since of service operates over multiple entities I want the extension to recognize the Entity type dynamically by method return type.
Notice the example does not implement EntityRepository and therefore the only return type should be checked.
@Repository public interface Java8Repository { MyEntity findByCourse(@NotNull String courseName); AnotherEntity findByCustomer(@NotNull String customerName); @Query("........") Object[] findMultipleEntityTypes(@NotNull String attribute); }