java - Domain Driven Design - How to use value object on the UI -


I was wondering how you use your DDD model within a web application. Eric Evan cargo includes value item within the app. Within the travel itinerary, there is again a collection of value objects. All price objects have to hide the rental ID for the outside world. So while using this domain model, how do I create a web app, where you can click on the cargo travel program, list all the legs and then redirecting to a new "Legs detail" page, Can show details. Generally I will pass LegId to the query field and read it again on the detail page. But since you do not have any ID, how will you do this?

The collection is sorted when the index of a leg can change?

Passing all the values ​​within the query field, because this value is an object identity?

I feel like a step backwards.

If there is no ID, then you mention it through the cargo, which has an identity, and therefore it can be linked to the URI / URL, to refer to the specific foot, you have only the index, which is Can be a number or a dictionary key. If you sort out the problems, then you can define two lists: one with the canonical ordering for reference purposes and another with the ordering, the position of the mapping order and the canonical index.

Evans example has IDs, I think this is for sorting purposes.

Of course, you can choose a travel program / lease with identification.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -