Mod4j: Modeling for Java using Domain Specific Languages

Genereted sercvice method may not cpmpile correctly because they depend on teh availability of other service methods

Details

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

Description

The code generated for e.g. an Update service method called a Read service method to get the object to update.
Hopwever if there is no Read method for the type of DTO, this results in a compilation error ()cannot find read*** method).

In the service DSL validation rules should check for this kind of dependency between service methods.

A second issue which is closely realted is that the name of the Read method that is generetd in the Updat method is the sntadard read name. If the needed Read method has a different name the names do not match.

Activity

Hide
Jos Warmer added a comment -

Solved by adding a number of validation rules. The READ method is mandatory for UPDATE, DELETE, REMOVEFROM, GETFROM and ADDTO methods.

Show
Jos Warmer added a comment - Solved by adding a number of validation rules. The READ method is mandatory for UPDATE, DELETE, REMOVEFROM, GETFROM and ADDTO methods.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: