Skip to content

Allow interfaces in domain model hierarchies. #2201

Closed
@hamidbm

Description

@hamidbm

I have few Entity node classes (PurchaseEntity, PLIEntity, EntitlementSetEntity, EntitlementEntity, ...) and the server can only start if not more than one repository interface is defined. Currently I have one repository interface (PurchaseRepository), but when I add another repository (like EntitlementRepository for example for the entity Entitlement), the server cannot start and throws the following error:

Caused by: org.springframework.data.mapping.MappingException: The schema already contains a node description under the primary label PLI

Only the entity PLIEntity is annotated with @node("PLI"), the other entities have their own labels, but somehow SDN is thinking all entities are labeled with PLI label

Entities are like this:

@node("Purchase")
public class PurchaseEntity {...}

@node("PLI")
public class PLIEntity {...}

@node("Entitlement")
public class { ... }

etc...

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions