Mod4j: Modeling for Java using Domain Specific Languages

DtoTranslators perform the fromDto incorerct in certain cases

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.2.0
  • Component/s: DSL for Data Contract
  • Labels:
    None
  • Number of attachments :
    0

Description

The fromDto operation in DTO's does not work in the following circumstances.

  • The Dto has other nested DTO's.
  • New DTO's have been added based on existing BusinessClasses
  • The new DTO is not already somewhere in the original DTO graph

In this case the Translator must read the Business object. The solution is to enable the translators to access the Dao's directly. This skips the domain layer. It seems that the dao should be promoted to act as a (DDD) repository on the domain layer. The current solution is to directly use the daos to retrieve objects needed during translation.

Activity

Hide
Johan Vogelzang added a comment -

Jos, is this issue fixed?

Show
Johan Vogelzang added a comment - Jos, is this issue fixed?
Hide
Jos Warmer added a comment -

Fixed and unit tests added to test it.

Show
Jos Warmer added a comment - Fixed and unit tests added to test it.
Hide
Johan Vogelzang added a comment -

Jos,

You changed Fix Version to 1.1.1 but the commits are done on 1.2.0 (trunk)?

Johan.

Show
Johan Vogelzang added a comment - Jos, You changed Fix Version to 1.1.1 but the commits are done on 1.2.0 (trunk)? Johan.
Hide
Jos Warmer added a comment -

Changed Fix version to 1.2.0

Show
Jos Warmer added a comment - Changed Fix version to 1.2.0

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved: