Hello All!
I'm using spring roo 1.2.1 DBRE feature for MySQL database. Now I want to move to roo 1.2.2. However I've encountered one problem related to auto-generated integration tests over domain model.
- roo 1.2.2 removes all relationships from *.ROO_DataOnDemand.aj aspects. As a raw example:
With roo 1.2.1
Code:
public Campaign CampaignDataOnDemand.getNewTransientCampaign(int index) {
Campaign obj = new Campaign();
setCreatedAt(obj, index);
setDescription(obj, index);
setIdentifier(obj, index);
setProviderId(obj, index);
setTitle(obj, index);
setUpdatedAt(obj, index);
return obj;
}
With roo 1.2.2
Code:
public Campaign CampaignDataOnDemand.getNewTransientCampaign(int index) {
Campaign obj = new Campaign();
setCreatedAt(obj, index);
setDescription(obj, index);
setIdentifier(obj, index);
setTitle(obj, index);
setUpdatedAt(obj, index);
return obj;
}
You can notice that is missing from the second example in that way roo 1.2.2 modifies already generated code from roo 1.2.1. The result is failed tests.
I didn't find any new configuration option to overcome this issue - in order to include relations in *ROO_DataOnDemands aspects.
Is there something new that I'm missing?
Thanks for your time,
Georgi