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 @@ -458,7 +458,6 @@ public class IdentityController {
}

IdentityEditDTO identity = InputMapper.getInstance().gson().fromJson(json, IdentityEditDTO.class);
// MBeneficiarymapping map;
try {
svc.editIdentity(identity);
String response = getSuccessResponseString("Updated successfully", 200, "success", "editIdentityByAgent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ public class BenFamilyMapping {
@Transient
private Integer blockId;

// @Transient
// private BenFamilyMapping memberList[];

@Transient
private Long beneficiaryRegId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,6 @@ public class RMNCHBeneficiaryDetailsRmnch {
@Expose
@Transient
private String stateName;
// @Expose
// @Transient
// private Integer districtId;
// @Expose
// @Transient
// private String districtName;
@Expose
@Transient
private Integer blockId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.gson.annotations.Expose;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/iemr/common/identity/domain/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
*/
private Integer zoneID;
private String zoneName;
// private Integer parkingPlaceID;
private String parkingPlaceName;
private Integer servicePointID;
private String servicePointName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ public class MBeneficiaryAccount {
@Column(name = "VehicalNo", length = 30)
private String vehicleNo;

// @Column(name = "ParkingPlaceID")
// private Integer parkingPlaceID;

@Column(name = "SyncedBy", length = 30)
private String syncedBy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/
package com.iemr.common.identity.domain;

import java.math.BigInteger;
import java.sql.Timestamp;

import javax.persistence.Column;
Expand Down Expand Up @@ -73,8 +72,6 @@ public class MBeneficiaryImage {

@Column(name = "VehicalNo")
private String vehicalNo;
// @Column(name = "ParkingPlaceID")
// private Integer parkingPlaceID;
@Column(name = "SyncedBy")
private String syncedBy;
@Column(name = "SyncedDate", unique = true, nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@

import lombok.Data;

/**
* The persistent class for the m_beneficiarydetails database table.
*
*/
@Entity
@Table(name = "i_beneficiarydetails")
@NamedQuery(name = "MBeneficiarydetail.findAll", query = "SELECT m FROM MBeneficiarydetail m order by beneficiaryDetailsId asc")
Expand All @@ -62,7 +58,6 @@ public class MBeneficiarydetail implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(unique = true, nullable = false)
// @OrderBy(value = "beneficiaryDetailsId asc")
private BigInteger beneficiaryDetailsId;

private Integer areaId;
Expand Down Expand Up @@ -125,8 +120,6 @@ public class MBeneficiarydetail implements Serializable {
@Column(length = 50)
private String modifiedBy;

// private Integer parkingPlaceID;

private Integer occupationId;

@Column(length = 45)
Expand Down Expand Up @@ -238,21 +231,10 @@ public class MBeneficiarydetail implements Serializable {
@Column(name = "VanSerialNo", updatable = false)
private BigInteger vanSerialNo;

// @Expose
// @Column(name = "familyid", updatable = true)
// private String familyid;

// END OF new column added for data sync
/**
* Default constructor
*/
public MBeneficiarydetail() {

}

/**
* Constructor for retrieving partial beneficiary details
*/
public MBeneficiarydetail(BigInteger beneficiaryDetailsId, String firstName, String lastName, String middleName,
String fatherName, String spouseName) {

Expand Down Expand Up @@ -342,9 +324,4 @@ public static String getIsHIVPositive(Integer status) {
return isHIVPositive;
}

// public static void main(String[] args)
// {
// Timestamp dob = new Timestamp(10, 07, 10,0,0,0,0);
// System.out.println(calculateAge(dob));
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ public class MBeneficiaryfamilymapping implements Serializable {

private Timestamp reservedOn;

// commented, 28-09-2018
// bi-directional many-to-one association to MBeneficiarymapping
// @ManyToOne(/* fetch = FetchType.EAGER */)
// @JoinColumn(name = "BenMapId", insertable = false, updatable = false)
// private MBeneficiarymapping MBeneficiarymapping;

@Column(name = "BenMapId", insertable = true, updatable = true)
private BigInteger benMapId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ public class MBeneficiaryidentity implements Serializable {

private Timestamp reservedOn;

// commented, 28-09-2018, unidirectional
// bi-directional many-to-one association to MBeneficiarymapping
// @ManyToOne(/* fetch = FetchType.EAGER */) /* (fetch = FetchType.LAZY) */
// @JoinColumn(name = "BenMapId", insertable = false, updatable = false)
// private MBeneficiarymapping MBeneficiarymapping;

@Column(name = "BenMapId", insertable = true, updatable = true)
private BigInteger benMapId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,6 @@ public class MBeneficiarymapping implements Serializable {
@JoinColumn(referencedColumnName = "benMapId", name = "benMapId", insertable = false, updatable = false)
private List<TBendataaccess> tBendataaccesses;

// public MBeneficiarymapping(BigInteger benMapId, String firstName)
// {
// this.mBeneficiarydetail.setFirstName(firstName);
// this.mBeneficiarydetail.setFirstName(firstName);
// this.mBeneficiarydetail.setFirstName(firstName);
// }

// public MBeneficiarymapping()
// {
//
// }

/*
* New columns added for MMU integration 11-04-2018
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,32 +80,13 @@ public class MBeneficiaryregidmapping implements Serializable {
@Column(name = "VehicalNo")
private String vehicalNo;

// private Integer ParkingPlaceID;

private String syncedBy;

private Timestamp syncedDate;

private String reservedForChange;

// //bi-directional one-to-one association to MBeneficiarydetail
// @OneToOne(fetch=FetchType.LAZY)
// @JoinColumn(name="BenRegId", referencedColumnName="BeneficiaryRegID",
// nullable=false, insertable=false, updatable=false)
// private MBeneficiarydetail MBeneficiarydetail;
//
// //bi-directional one-to-one association to MBeneficiarymapping
// @OneToOne(fetch=FetchType.LAZY)
// @JoinColumn(name="BenRegId", referencedColumnName="BenRegId", nullable=false,
// insertable=false, updatable=false)
// private MBeneficiarymapping MBeneficiarymapping;
//
// //bi-directional many-to-one association to MBeneficiaryfamilymapping
// @OneToMany(mappedBy="MBeneficiaryregid")
// private List<MBeneficiaryfamilymapping> MBeneficiaryfamilymappings;

// new column added for data sync
// 17-06-2018
@Expose
@Column(name = "vanID")
private Integer vanID;
Expand All @@ -117,5 +98,4 @@ public class MBeneficiaryregidmapping implements Serializable {
@Column(name = "VanSerialNo")
private BigInteger vanSerialNo;

// END OF new column added for data sync
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ public class MBeneficiaryservicemapping implements Serializable {
@Column(length = 45)
private String stateName;

// bi-directional many-to-one association to MBeneficiarymapping
// @ManyToOne(/* fetch = FetchType.EAGER */) /* (fetch = FetchType.LAZY) */
// @JoinColumn(name = "BenMapId")
// private MBeneficiarymapping MBeneficiarymapping;

@Column(name = "BenMapId", insertable = true, updatable = true)
private BigInteger benMapId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ public class TBendataaccess implements Serializable
private String authId;

@Transient
// @Column(nullable=false, length=75) //SQL Error: 1054, SQLState: 42S22 Unknown column 'tbendataac0_.consentId' in
// 'field list'
private String consentId;

@Column(length = 4)
Expand All @@ -79,8 +77,6 @@ public class TBendataaccess implements Serializable
private Integer userAgentId;

@Transient
// @Column(nullable=false, length=20)// SQL Error: 1054, SQLState: 42S22 Unknown column
// 'tbendataac0_.userAgentIpAddr' in 'field list'
private String userAgentIpAddr;

@Column(nullable = false)
Expand All @@ -92,11 +88,6 @@ public class TBendataaccess implements Serializable
@Column(nullable = false)
private Integer userAgentServiceId;

// commented on 28-09-2018
// bi-directional many-to-one association to MBeneficiarymapping
// @ManyToOne(/*fetch = FetchType.EAGER*/) /* (fetch = FetchType.LAZY) */
// @JoinColumn(name = "BenMapId", nullable = false)
// private MBeneficiarymapping MBeneficiarymapping;
@Column(name = "BenMapId", insertable = true, updatable = true)
private BigInteger benMapId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public class V_BenAdvanceSearch {
@Column(name = "DOB")
private Timestamp dOB;

// new column added for D2D, 21-01-2021
@Expose
@Column(name = "houseoldId")
private Long houseHoldID;
Expand Down Expand Up @@ -144,7 +143,6 @@ public void setHouseHoldID(Long houseHoldID) {

public V_BenAdvanceSearch() {
super();
// TODO Auto-generated constructor stub
}

public BigInteger getBenMapID() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public class BeneficiariesDTO implements Comparable<BeneficiariesDTO> {
private String preferredEmailId; //
private BenDetailDTO beneficiaryDetails;
private List<BenFamilyDTO> beneficiaryFamilyTags;
// private List<BenFamilyDTO> benFamilyDTOs;
private List<BenIdentityDTO> beneficiaryIdentites;
private List<BenServiceDTO> beneficiaryServiceMap;
private List<Phone> contacts;
Expand All @@ -65,8 +64,6 @@ public int compareTo(BeneficiariesDTO ben) {
return this.benMapId.compareTo(ben.benMapId);
}

// Start Outreach
// New columns added for MMU integration 09-04-2018
private Timestamp marriageDate;
private Integer ageAtMarriage;
private String literacyStatus;
Expand Down
20 changes: 1 addition & 19 deletions src/main/java/com/iemr/common/identity/dto/IdentityDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
import com.iemr.common.identity.domain.Address;
import com.iemr.common.identity.domain.Contact;
import com.iemr.common.identity.domain.Identity;
// import com.iemr.common.identity.domain.Phone;

import lombok.Data;

@Data
public class IdentityDTO {

private String eventTypeName; // created, reserved, registered, modified,
// deleted
private Timestamp eventTypeDate;
private Integer agentId;
private String agentName;
Expand All @@ -50,7 +48,6 @@ public class IdentityDTO {
private String stateName;
private Integer providerServiceMapId;

// details
private Integer areaId;
private Integer beneficiaryId;
private Integer beneficiaryRegId;
Expand Down Expand Up @@ -91,7 +88,6 @@ public class IdentityDTO {
private String title;
private Integer zoneId;

// address
private Address currentAddress;
private Address permanentAddress;
private Address emergencyAddress;
Expand All @@ -101,28 +97,18 @@ public class IdentityDTO {
private Boolean isEmerAddrSameAsPermAddr;
private String addressType;

// contacts
private String preferredEmailId;
private Contact contact;

// family tagging
List<BenFamilyDTO> benFamilyDTOs;
// private Boolean isEmergencyContact;
// private String relationshipToSelf;
// private BigInteger associatedBenRegId;

// identities
private List<Identity> identities;

// Start 1097
private Integer sexualOrientationID;
private String sexualOrientationType;
private String isHIVPositive;
// End 1097

/*
* New columns added for MMU integration 11-04-2018
*/

private String bankName;
private String branchName;
private String ifscCode;
Expand All @@ -133,14 +119,10 @@ public class IdentityDTO {
private Integer ageAtMarriage;
private Integer incomeStatusId;
private String incomeStatus;
// End

// new column added for data sync
// 17-06-2018
@Expose
private Integer vanID;

// END OF new column added for data sync

@Expose
private Boolean beneficiaryConsent;
Expand Down
Loading