Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 31ce49e

Browse files
dfcoffinclaude
andcommitted
Rename IdentifiedObjectEntity to IdentifiedObject for proper MappedSuperclass naming
- Rename IdentifiedObjectEntity.java to IdentifiedObject.java to reflect that it's a @MappedSuperclass, not an actual @entity - Update class name from IdentifiedObjectEntity to IdentifiedObject - Update all imports and extends clauses across the entire codebase to use IdentifiedObject - Update documentation to clarify this is a mapped superclass, not an entity - This follows proper JPA naming conventions where @MappedSuperclass classes don't have "Entity" suffix, which is reserved for actual @entity classes This architectural improvement makes the naming semantically correct and aligns with NAESB ESPI specification terminology where the base class is called "IdentifiedObject". Files affected: 22 entity classes, 1 base mapper, and the renamed base class itself. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 80a8887 commit 31ce49e

23 files changed

+39
-39
lines changed

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/AccountNotificationEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
2727
import org.greenbuttonalliance.espi.common.domain.customer.enums.NotificationMethodKind;
28-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
28+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2929

3030
import jakarta.persistence.*;
3131
import java.time.OffsetDateTime;
@@ -44,7 +44,7 @@
4444
@EqualsAndHashCode(callSuper = true)
4545
@NoArgsConstructor
4646
@ToString(callSuper = true)
47-
public class AccountNotificationEntity extends IdentifiedObjectEntity {
47+
public class AccountNotificationEntity extends IdentifiedObject {
4848

4949
/**
5050
* Method by which the customer was notified.

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/AssetEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030
import java.math.BigDecimal;
@@ -44,7 +44,7 @@
4444
@EqualsAndHashCode(callSuper = true)
4545
@NoArgsConstructor
4646
@ToString(callSuper = true)
47-
public class AssetEntity extends IdentifiedObjectEntity {
47+
public class AssetEntity extends IdentifiedObject {
4848

4949
/**
5050
* Utility-specific classification of Asset and its subtypes, according to their corporate standards,

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/DocumentEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030
import java.time.OffsetDateTime;
@@ -43,7 +43,7 @@
4343
@EqualsAndHashCode(callSuper = true)
4444
@NoArgsConstructor
4545
@ToString(callSuper = true)
46-
public class DocumentEntity extends IdentifiedObjectEntity {
46+
public class DocumentEntity extends IdentifiedObject {
4747

4848
/**
4949
* Date and time that this document was created.

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/LocationEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030
import java.util.List;
@@ -44,7 +44,7 @@
4444
@EqualsAndHashCode(callSuper = true)
4545
@NoArgsConstructor
4646
@ToString(callSuper = true, exclude = {"positionPoints"})
47-
public class LocationEntity extends IdentifiedObjectEntity {
47+
public class LocationEntity extends IdentifiedObject {
4848

4949
/**
5050
* Classification by utility's corporate standards and practices, relative to the location itself

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/OrganisationEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030

@@ -41,7 +41,7 @@
4141
@EqualsAndHashCode(callSuper = true)
4242
@NoArgsConstructor
4343
@ToString(callSuper = true)
44-
public class OrganisationEntity extends IdentifiedObjectEntity {
44+
public class OrganisationEntity extends IdentifiedObject {
4545

4646
/**
4747
* Organisation name (replaces deprecated 'name' field)

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/OrganisationRoleEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030

@@ -42,7 +42,7 @@
4242
@EqualsAndHashCode(callSuper = true)
4343
@NoArgsConstructor
4444
@ToString(callSuper = true)
45-
public class OrganisationRoleEntity extends IdentifiedObjectEntity {
45+
public class OrganisationRoleEntity extends IdentifiedObject {
4646

4747
/**
4848
* Organisation having this role.

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/ProgramDateIdMappingsEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030

@@ -41,7 +41,7 @@
4141
@EqualsAndHashCode(callSuper = true)
4242
@NoArgsConstructor
4343
@ToString(callSuper = true)
44-
public class ProgramDateIdMappingsEntity extends IdentifiedObjectEntity {
44+
public class ProgramDateIdMappingsEntity extends IdentifiedObject {
4545

4646
/**
4747
* [extension] Program date description

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/StatementEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030
import java.time.OffsetDateTime;
@@ -43,7 +43,7 @@
4343
@EqualsAndHashCode(callSuper = true)
4444
@NoArgsConstructor
4545
@ToString(callSuper = true, exclude = {"statementRefs"})
46-
public class StatementEntity extends IdentifiedObjectEntity {
46+
public class StatementEntity extends IdentifiedObject {
4747

4848
/**
4949
* [extension] Date and time at which a billing statement was issued.

src/main/java/org/greenbuttonalliance/espi/common/domain/customer/entity/StatementRefEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import lombok.EqualsAndHashCode;
2525
import lombok.NoArgsConstructor;
2626
import lombok.ToString;
27-
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObjectEntity;
27+
import org.greenbuttonalliance.espi.common.domain.usage.IdentifiedObject;
2828

2929
import jakarta.persistence.*;
3030

@@ -42,7 +42,7 @@
4242
@EqualsAndHashCode(callSuper = true)
4343
@NoArgsConstructor
4444
@ToString(callSuper = true)
45-
public class StatementRefEntity extends IdentifiedObjectEntity {
45+
public class StatementRefEntity extends IdentifiedObject {
4646

4747
/**
4848
* [extension] Name of document or file including filename extension if present.

src/main/java/org/greenbuttonalliance/espi/common/domain/usage/ApplicationInformationEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
@EqualsAndHashCode(callSuper = true)
4949
@NoArgsConstructor
5050
@ToString(callSuper = true)
51-
public class ApplicationInformationEntity extends IdentifiedObjectEntity {
51+
public class ApplicationInformationEntity extends IdentifiedObject {
5252

5353
private static final long serialVersionUID = 1L;
5454

0 commit comments

Comments
 (0)