Giter Site home page Giter Site logo

telosys-tools-bricks / telosys-tools-dsl-parser Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 7.0 970 KB

Telosys DSL MODEL management including parser

Home Page: https://www.telosys.org/

License: GNU Lesser General Public License v3.0

Java 100.00%
domain-specific-language dsl java model models parser telosys

telosys-tools-dsl-parser's People

Contributors

l-gu avatar ludo1026 avatar ludovic-chaboud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

telosys-tools-dsl-parser's Issues

support multiple inheritance or traits

I wasn't sure where to add this feature request, but this seemed repository seemed appropriate.

Are there any plans to support multiple inheritance or traits in the entity definition?

Something like:

Location {
    lat: double;
    long: double;
}

Landmark {
    website: string;
    name: string;
}

Library extends Location, Landmark {
    books : Book[];
}

Adding some properties on Entity level to help with inheritance concrete type and introducing Guid entity type

As mentioned in a stackoverflow question:
Regarding the class, for the moment there are no annotations (or tags) at the entity level (it will happen soon). But you can use a file to define the entities which should extend another class.

https://stackoverflow.com/questions/70092361/generating-class-in-c-sharp-that-inherits-a-generic-class-which-uses-type-parame/70123996#70123996
I wanted to express the fact that the Country class inherits from an entity and that it has an Id of Guid type.

public class Country : Entity<Guid>
{

}

public abstract class Entity<TKey> : Entity, IEntity<TKey>
{
    public virtual TKey Id { get; protected set; }
    protected Entity(TKey id)
    {
        Id = id;
    }
}

Next I am missing Guid property type which should be a fairly frequent type in modern language.
It should be added to the existing list:
. binary
. boolean
. byte
. date
. decimal
. double
. float
. int
. long
. short
. string
. time
. timestamp

Eclipse Plugin Opening Model File

Hi,

I currently try to use the Telosys Eclipse plugin. It is like there is a problem between creating a Model folder and retrieving it in the Telosys Editor within Eclipse.

Creating the folder works correctly (the folder is correctly created in the correct location set in "Models folder" in the Telosys Settings -> General) but when the Editor tries to open it I get en Exception. It seems the absolute path uses the eclipse "Workspace location" and recreate the path from there using the WorkspaceLocation/Project Name/TelosysTools/ModelFolder instead of the "Models folder". For some reason on my environment the project I use Telosys in is not included in the eclipse workspace folder.

I tried to simply create a shortcut on Windows to point the correct folder in the correct location Telosys Plugin tries to retrieve but it does not work.

Can I provide you more informations ? Is it possible to fix this with the telosys-tools.cfg file ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.