Mod4j: Modeling for Java using Domain Specific Languages

For a boolean a getBoolean() is generated in the DtoTranslator. In stead of isBoolean().

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 Data Contract
  • Labels:
    None
  • Environment:
    Windows XP
  • Number of attachments :
    0

Description

BusinessDomain DomainModel
Class Medewerker [
boolean publiekProfiel default false;
]

DataContract DataContractModel
from DomainModel import Medewerker
BusinessClassDto MedewerkerDto base Medewerker [
publiekProfiel
]

part of generated DtoTranslator [fromDto] method:
...
public synchronized Medewerker fromDto(final MedewerkerDto source,
Medewerker target) throws TranslatorException {
if (source.getPubliekProfiel() != null) { <=== getPubliekProfiel() i.s.o. isPubliekProfiel() (actually the whole if can be removed) target.setPubliekProfiel(source.isPubliekProfiel()); }

Activity

Hide
Johan Vogelzang added a comment -

Fixed.

Workaround:
If applicable you could mark the attribute "nullable"

Show
Johan Vogelzang added a comment - Fixed. Workaround: If applicable you could mark the attribute "nullable"

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: