class MarriageCertRepository {

	public void insert(MarriageRegn marriageRegn) {
		String certificateNo = certificateNumberService.generateCertificateNumber();
		Object[] obj = new Object[] {marriageRegn.getId(), certificateNo, new Date().getTime(), CertificateType.REGISTRATION.toString(),
				marriageRegn.getRegnNumber(), marriageRegn.getBridegroom().getPhoto(),
				marriageRegn.getBride().getPhoto(), marriageRegn.getBridegroom().getName(),
				marriageRegn.getBridegroom().getResidenceAddress(), marriageRegn.getBride().getName(),
				marriageRegn.getBride().getResidenceAddress(), marriageRegn.getMarriageDate(),
				marriageRegn.getPlaceOfMarriage(), marriageRegn.getRegnDate(), marriageRegn.getSerialNo(),
				marriageRegn.getVolumeNo(), 1, new Date().getTime(), 1, new Date().getTime(),
				// marriageRegn.getCertificatePlace(),
				// marriageRegn.getTemplateVersion(),
				marriageRegn.getApplicationNumber(), marriageRegn.getTenantId() };
		jdbcTemplate.update(CERTIFICATE_INSERT_QUERY, obj);
	}

}