polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZEST-180) Replace String with Identity
Date Sun, 23 Oct 2016 02:01:58 GMT

    [ https://issues.apache.org/jira/browse/ZEST-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15598854#comment-15598854

Niclas Hedhman commented on ZEST-180:

With the introduction of Identity, it feels that both DDD sample applications are actually
fairly poorly designed. VoyagerNumber, TrackingId, UnLoCode are all explicit identity types,
and should be the Identity of the Entity types that they identify. That would also lead to
a wider use of Associations in the design, and not this constant "get the Property, take the
id, look up the entity" which is currently occurring.

Therefore, I want to remove these examples and basically re-implement them later, perhaps
starting from scratch, from the DDD Sample that these 2 were actually originating from, which
may(!) have evolved since.

> Replace String with Identity
> ----------------------------
>                 Key: ZEST-180
>                 URL: https://issues.apache.org/jira/browse/ZEST-180
>             Project: Zest
>          Issue Type: New Feature
>            Reporter: Niclas Hedhman
> We use java.lang.String in many places instead of the Identity type.
> We should replace all those usages with an explicit Identity, to strengthening the APIs.

This message was sent by Atlassian JIRA

View raw message