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 @@ -263,17 +263,6 @@ public class UsagePointEntity extends IdentifiedObject {

// XSD Position 22-23: pnodeRefs and aggregateNodeRefs - See relationship sections below

// ==================== Legacy Fields (NOT in ESPI 4.0 XSD) ====================
// TODO Phase 16c: Review if these fields should be removed or mapped to XSD elements

/**
* URI for this usage point.
* Used for external references and linking.
* NOTE: This field is NOT in ESPI 4.0 XSD - legacy field for review.
*/
@Column(name = "uri")
private String uri;

// ==================== JPA Relationships ====================

/**
Expand Down Expand Up @@ -439,7 +428,6 @@ public void merge(UsagePointEntity other) {
this.serviceCategory = other.serviceCategory;
this.status = other.status;
this.roleFlags = other.roleFlags;
this.uri = other.uri;
}
}

Expand Down Expand Up @@ -484,7 +472,6 @@ public String toString() {
"roleFlags = " + getRoleFlags() + ", " +
"serviceCategory = " + getServiceCategory() + ", " +
"status = " + getStatus() + ", " +
"uri = " + getUri() + ", " +
"estimatedLoad = " + getEstimatedLoad() + ", " +
"nominalServiceVoltage = " + getNominalServiceVoltage() + ", " +
"ratedCurrent = " + getRatedCurrent() + ", " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public interface UsagePointMapper {
@Mapping(target = "readRoute", source = "readRoute")
@Mapping(target = "serviceDeliveryRemark", source = "serviceDeliveryRemark")
@Mapping(target = "servicePriority", source = "servicePriority")
@Mapping(target = "uri", ignore = true) // Legacy field
@Mapping(target = "pnodeRefs", ignore = true) // TODO: Add mapper implementation
@Mapping(target = "aggregatedNodeRefs", ignore = true) // TODO: Add mapper implementation
@Mapping(target = "meterReadings", ignore = true) // Circular dependency - handle separately
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ CREATE TABLE usage_points
service_delivery_remark VARCHAR(256), -- 20. serviceDeliveryRemark (Phase 16a)
service_priority VARCHAR(32), -- 21. servicePriority (Phase 16a)

-- EXTRA FIELDS (not in ESPI 4.0 XSD - to be reviewed in Phase 16b)
kind VARCHAR(50), -- NOT IN XSD (legacy field?)
uri VARCHAR(1024), -- NOT IN XSD (legacy field?)

-- Foreign key relationships
retail_customer_id BIGINT,
service_delivery_point_id BIGINT,
Expand All @@ -166,7 +162,6 @@ CREATE TABLE usage_points
);

-- Create indexes for usage_points table
CREATE INDEX idx_usage_point_kind ON usage_points (kind);
CREATE INDEX idx_usage_point_status ON usage_points (status);
CREATE INDEX idx_usage_point_customer_id ON usage_points (retail_customer_id);
CREATE INDEX idx_usage_point_sdp_id ON usage_points (service_delivery_point_id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ CREATE TABLE usage_points
service_delivery_remark VARCHAR(256), -- 20. serviceDeliveryRemark (Phase 16a)
service_priority VARCHAR(32), -- 21. servicePriority (Phase 16a)

-- EXTRA FIELDS (not in ESPI 4.0 XSD - to be reviewed in Phase 16b)
kind VARCHAR(50), -- NOT IN XSD (legacy field?)
uri VARCHAR(1024), -- NOT IN XSD (legacy field?)

-- Foreign key relationships
retail_customer_id BIGINT,
service_delivery_point_id BIGINT,
Expand All @@ -161,7 +157,6 @@ CREATE TABLE usage_points
FOREIGN KEY (service_delivery_point_id) REFERENCES service_delivery_points (id) ON DELETE SET NULL,
FOREIGN KEY (local_time_parameters_id) REFERENCES time_configurations (id) ON DELETE SET NULL,

INDEX idx_usage_point_kind (kind),
INDEX idx_usage_point_status (status),
INDEX idx_usage_point_customer_id (retail_customer_id),
INDEX idx_usage_point_sdp_id (service_delivery_point_id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ CREATE TABLE usage_points
service_delivery_remark VARCHAR(256), -- 20. serviceDeliveryRemark (Phase 16a)
service_priority VARCHAR(32), -- 21. servicePriority (Phase 16a)

-- EXTRA FIELDS (not in ESPI 4.0 XSD - to be reviewed in Phase 16b)
kind VARCHAR(50), -- NOT IN XSD (legacy field?)
uri VARCHAR(1024), -- NOT IN XSD (legacy field?)

-- Foreign key relationships
retail_customer_id BIGINT,
service_delivery_point_id BIGINT,
Expand All @@ -163,7 +159,6 @@ CREATE TABLE usage_points
FOREIGN KEY (local_time_parameters_id) REFERENCES time_configurations (id) ON DELETE SET NULL
);

CREATE INDEX idx_usage_point_kind ON usage_points (kind);
CREATE INDEX idx_usage_point_status ON usage_points (status);
CREATE INDEX idx_usage_point_customer_id ON usage_points (retail_customer_id);
CREATE INDEX idx_usage_point_sdp_id ON usage_points (service_delivery_point_id);
Expand Down
Loading