Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error of generated classes from template #423

Open
talex1 opened this issue Mar 8, 2023 · 1 comment
Open

Compilation error of generated classes from template #423

talex1 opened this issue Mar 8, 2023 · 1 comment
Labels
bug Something isn't working feedback Feedback from the creator of the issue is required

Comments

@talex1
Copy link

talex1 commented Mar 8, 2023

Hi
I created own archetype and template by https://tools.openehr.org/designer/, generated classes from template by openEHR_SDK generator v.1.24.0 and while building I got an error:
"MyLaboratoryResultV3Composition.java:35: error: MyLaboratoryResultV3Composition is not abstract and does not override abstract method getSettingDefiningCode() in CompositionEntity public class MyLaboratoryResultV3Composition implements CompositionEntity..."
In generated class is:
"...
/**

  • Path: my_laboratory_result/Event Context/location
    */
    @path("/context[at0002]/location")
    private String eventContextLocation;
    ........
    public Setting getContextSettingDefiningCode() {
    return this.contextSettingDefiningCode ;
    }
    "
    Why method getContextSettingDefiningCode() instead of getSettingDefiningCode() is generated from this opt template?
    I can add this opt template to ehrBase server and add composition for this template.
    my_laboratory_result.v3.opt.zip
@talex1 talex1 added the bug Something isn't working label Mar 8, 2023
@stefanspiska
Copy link
Contributor

@talex1

this is because of https://discourse.openehr.org/t/composition-archetypes-are-generated-with-atcode-in-eventcontext/3202

you have to edit your composition archetype.

@vidi42 vidi42 added the feedback Feedback from the creator of the issue is required label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback Feedback from the creator of the issue is required
Projects
None yet
Development

No branches or pull requests

3 participants