|
59 | 59 | import com.iemr.common.identity.domain.MBeneficiarymapping;
|
60 | 60 | import com.iemr.common.identity.domain.MBeneficiaryregidmapping;
|
61 | 61 | import com.iemr.common.identity.domain.MBeneficiaryservicemapping;
|
| 62 | +import com.iemr.common.identity.domain.TBendataaccess; |
62 | 63 | import com.iemr.common.identity.domain.VBenAdvanceSearch;
|
63 | 64 | import com.iemr.common.identity.dto.AbhaAddressDTO;
|
64 | 65 | import com.iemr.common.identity.dto.BenIdImportDTO;
|
|
92 | 93 | import com.iemr.common.identity.utils.mapper.OutputMapper;
|
93 | 94 | import com.iemr.common.identity.utils.response.OutputResponse;
|
94 | 95 |
|
| 96 | +import jakarta.persistence.EntityManager; |
95 | 97 | import jakarta.persistence.NoResultException;
|
96 | 98 | import jakarta.persistence.QueryTimeoutException;
|
| 99 | +import jakarta.persistence.criteria.CriteriaBuilder; |
| 100 | +import jakarta.persistence.criteria.CriteriaQuery; |
| 101 | +import jakarta.persistence.criteria.Join; |
| 102 | +import jakarta.persistence.criteria.JoinType; |
| 103 | +import jakarta.persistence.criteria.Predicate; |
| 104 | +import jakarta.persistence.criteria.Root; |
97 | 105 |
|
98 | 106 | @Service
|
99 | 107 | public class IdentityService {
|
100 | 108 | private static final Logger logger = LoggerFactory.getLogger(IdentityService.class);
|
101 | 109 | public static final String CREATED_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";
|
102 | 110 | @Autowired
|
103 | 111 | private DataSource dataSource;
|
| 112 | + |
| 113 | + @Autowired |
| 114 | + private EntityManager entityManager; |
104 | 115 |
|
105 | 116 | private JdbcTemplate jdbcTemplate;
|
106 | 117 |
|
@@ -578,7 +589,8 @@ private MBeneficiarymapping getBeneficiariesDTONew(Object[] benMapArr) {
|
578 | 589 | benMapOBJ.setCreatedBy(String.valueOf(benMapArr[10]));
|
579 | 590 | benMapOBJ.setCreatedDate((Timestamp) benMapArr[11]);
|
580 | 591 | benMapOBJ = mappingRepo.getMapping(getBigIntegerValueFromObject(benMapArr[9]), (Integer) benMapArr[8]);
|
581 |
| - |
| 592 | + |
| 593 | + |
582 | 594 |
|
583 | 595 | BigInteger benRegId = new BigInteger(benMapArr[5].toString());
|
584 | 596 | RMNCHBeneficiaryDetailsRmnch obj = rMNCHBeneficiaryDetailsRmnchRepo
|
|
0 commit comments