Mod4j: Modeling for Java using Domain Specific Languages

No import org.joda.time.DateTime generated when using mandatory datetime

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0.0
  • Labels:
    None
  • Environment:
    mod4j 1.0.0-beta-3
  • Number of attachments :
    0

Description

Business model contains:
Class Opdracht [
"When did the professional start the assignment / project"
datetime startDatum ;

"When did the professional finish the assignment / project"
datetime einddatum ;
...

Class OrdinaOpdracht inherits Opdracht [
...

The generated source OrdinaOpdrachtImplBase contains the following constructor:
public OrdinaOpdrachtImplBase(DateTime startDatum, DateTime einddatum,
String organisatie, String situatie, String taken,
String resultaten, String projectnaam) {

The type DateTime is not known in OrdinaOpdracht, causing a "cannot find symbol" compilation failure.

Note that OrdinaOpdracht inherits from Opdracht.

Activity

Hide
Jos Warmer added a comment -

Fixed, by importing all inherited properties as well, instead of only the local ones.

Show
Jos Warmer added a comment - Fixed, by importing all inherited properties as well, instead of only the local ones.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: