Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class MBeneficiaryAccount {
@Column(name = "CreatedBy", length = 50, updatable = false)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
private Timestamp createdDate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class MBeneficiaryImage {
private String processed;
@Column(name = "CreatedBy", updatable = false)
private String createdBy;
@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
private Timestamp createdDate;
@Column(name = "Reserved")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MBeneficiaryaddress implements Serializable {
@Column(nullable = false, length = 50)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

@Column(length = 50)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MBeneficiaryconsent implements Serializable {
@Column(nullable = false, length = 50)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

private Boolean deleted = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class MBeneficiarycontact implements Serializable {
@Column(nullable = false, length = 50, updatable = false)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

private Boolean deleted = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class MBeneficiarydetail implements Serializable {
@Column(nullable = false, length = 50, updatable = false)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

private Boolean deleted = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class MBeneficiarymapping implements Serializable {
@Column(nullable = false, length = 50)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class MBeneficiaryregidmapping implements Serializable {
@Column(length = 30)
private String createdBy;

@Column(name = "CreatedDate")
@Column(name = "CreatedDate",updatable = false)
private Timestamp createdDate;

private Boolean deleted = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
@Repository
public interface BenRegIdMappingRepo extends CrudRepository<MBeneficiaryregidmapping, BigInteger> {
List<MBeneficiaryregidmapping> findByBenRegIdOrderByBenRegIdAsc(BigInteger benRegId);

MBeneficiaryregidmapping findByBeneficiaryID(BigInteger beneficiaryID);
@Query("SELECT a FROM MBeneficiaryregidmapping a WHERE a.beneficiaryID =:beneficiaryID")
MBeneficiaryregidmapping findByBeneficiaryID(@Param("beneficiaryID") BigInteger beneficiaryID);

List<MBeneficiaryregidmapping> findByCreatedDateBetweenOrderByBenRegIdAsc(Timestamp fromDate, Timestamp toDate);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ public List<BeneficiariesDTO> getBeneficiariesByBenId(BigInteger benId)
logger.info("IdentityService.getBeneficiariesByBenId - start, beneficiaryID : " + benId);
List<BeneficiariesDTO> list = new ArrayList<BeneficiariesDTO>();

//MBeneficiaryregidmapping regId = regIdRepo.findByBeneficiaryID(benId);
MBeneficiaryregidmapping regId=regIdRepo.findOne(benId);
MBeneficiaryregidmapping regId = regIdRepo.findByBeneficiaryID(benId);
if (regId != null && regId.getBenRegId() != null) {
List<Object[]> benMapObjArr = mappingRepo.getBenMappingByRegID(regId.getBenRegId());

Expand Down