Skip to content

Change name of implicit root containments #141

@larsk21

Description

@larsk21

When explicitly (or currently also implicitly, see #134) creating a root class, the implicitly created containment references from the root class to other, non-contained classes are named allXs (e.g., allMovies for a class Movie). Instead, we could name them xs (e.g., movies), which is a bit nicer to read. The relevant definition is:

public static final String RootReferenceNameFormat = "all%ss";

Also, it is a bit weird that NeoJoin complains that queries without a source section (such as create root MyRoot ...) must have a body, but when explicitly specifying an empty body (create root MyRoot {}), the references to non-contained classes are still generated. Maybe we should just allow queries without a source section and without a body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendSomething with the frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions