Advertisement
alexandrecoussy

Untitled

Mar 31st, 2022
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1.   @Query("select distinct p.insurer from #{#entityName} p")
  2.   Set<String> findInsurers();
  3.  
  4.   @Query("SELECT NEW com.amfinesoft.common.core.dto.ProductIdDto(p.insurer, p.productId, p.productName, p.profileId, p.profileName)" + //
  5.     "     FROM #{#entityName} p JOIN p.includedUnderlyings iu JOIN iu.underlying u" + //
  6.     "     WHERE p.insurer in :insurers AND u.isin = :isin" + //
  7.     "     ORDER BY p.insurer asc, p.productId asc, p.profileId asc")
  8.   Page<ProductIdDto> findProductsByIsin(@Param("isin") final String isin, @Param("insurers") final Set<String> insurers, Pageable page);
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement