diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryAccount.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryAccount.java
index e5c89bad..c63c1996 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryAccount.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryAccount.java
@@ -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;
 
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryImage.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryImage.java
index aaa29a35..1559595e 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryImage.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryImage.java
@@ -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")
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryaddress.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryaddress.java
index c2d163e9..99bb215d 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryaddress.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryaddress.java
@@ -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)
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryconsent.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryconsent.java
index dc03f1e4..761f4d3f 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryconsent.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryconsent.java
@@ -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;
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiarycontact.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiarycontact.java
index ee5e745d..652a65fb 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiarycontact.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiarycontact.java
@@ -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;
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiarydetail.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiarydetail.java
index e5017ff1..28134093 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiarydetail.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiarydetail.java
@@ -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;
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiarymapping.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiarymapping.java
index 0e8e5bd3..5c12bab3 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiarymapping.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiarymapping.java
@@ -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)
diff --git a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryregidmapping.java b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryregidmapping.java
index 8dc86918..3cfa4974 100644
--- a/src/main/java/com/iemr/common/identity/domain/MBeneficiaryregidmapping.java
+++ b/src/main/java/com/iemr/common/identity/domain/MBeneficiaryregidmapping.java
@@ -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;
diff --git a/src/main/java/com/iemr/common/identity/repo/BenRegIdMappingRepo.java b/src/main/java/com/iemr/common/identity/repo/BenRegIdMappingRepo.java
index 9154ab87..4087fa66 100644
--- a/src/main/java/com/iemr/common/identity/repo/BenRegIdMappingRepo.java
+++ b/src/main/java/com/iemr/common/identity/repo/BenRegIdMappingRepo.java
@@ -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);
 
diff --git a/src/main/java/com/iemr/common/identity/service/IdentityService.java b/src/main/java/com/iemr/common/identity/service/IdentityService.java
index e50caa66..911bd81b 100644
--- a/src/main/java/com/iemr/common/identity/service/IdentityService.java
+++ b/src/main/java/com/iemr/common/identity/service/IdentityService.java
@@ -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());
 
