My Oracle Support Banner

handleChange DTO Incorrectly Contains The New DTO For Entity Servicepointmeterhistory in CCB v2.1.0 (Doc ID 560827.1)

Last updated on MAY 23, 2019

Applies to:

Oracle Utilities Customer Care and Billing - Version 2.1.0 to [Release 2.1 to 2.3]
Oracle Utilities Framework - Version 2.1.0 and later
Information in this document applies to any platform.


On ServicePointMeterHistory Change Handler:

The handleChange's 2nd parameter - DataTransferObject contains the new DTO which is wrong. It
should contain the old DTO object to be able to compare it with the new entity which is from the
1st parameter.

I tried displaying the 2 parameter entities and they both have the same value.

The issue can be reproduced at will with the following steps:
1. Using the sample code below, display the entity of the parameters on the ServicePointMeterHistory Change Handler to see if the BusinessEntity contains the changedEntity and the DataTransferObject contains the old DTO.

Sample of Code:

public void handleChange(BusinessEntity changedBusinessEntity, DataTransferObject oldDTO) {"enter handleChange");

spMeterHist = (ServicePointMeterHistory) changedBusinessEntity;"new mtr"+spMeterHist.getMeterConfiguration());

ServicePointMeterHistory spMeterHistOld = (ServicePointMeterHistory) oldDTO.getEntity();"old mtr"+spMeterHistOld.getMeterConfiguration());





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.