Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.3.0
-
Fix Version/s: None
-
Component/s: DSL for Business Domain
-
Labels:None
-
Number of attachments :
Description
The id constructor conflicts with the constructor for any classes that have exactly one required attribute of the same datatype of the identifier. For example for the this class:
class Conflicting [
string one nullable;
integer two;
datetime three nullable;
]
the following conflicting constructors will be generated:
public InkomensToetsResultaat(Long two)
{ super(two); }protected InkomensToetsResultaat(Long id)
{ super(id); }Activity
Johan Vogelzang
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Cannot Reproduce [ 5 ] |
For the given example two constructors will be generated:
public Conflicting(Integer two)
{super(two);}protected Conflicting(Long id)
{super(id);}Integer attributes declared in the model will be generated as java.lang.Integer in the java class, not as java.lang.Long.