daniel sti

Avatar
  • Total activity 259
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 1 user
  • Votes 6
  • Subscriptions 76
  • Created

    How can i display only substring of a property?

    Hi,in order to remove the "set" from Setter-Methods, i created an attribute concept with a reference to the setter-Method (InstanceMethodDeclaration). In this attribute concept i used a constraint ...
    • 2 followers
    • 4 comments
    • 0 votes
  • Created

    Why do i not get an mps error?

    As one can see above, i have forgotten a return statement in the second if(). The current statement does not lead to an error - should n t it be one? I already stumbled over forgetting the return s...
    • 2 followers
    • 1 comment
    • 0 votes
  • Created

    Very strange behaviour of smodel lang.

    Hi,if i write the following code in a $LOOP$ macro:(node, genContext, operationContext)->sequence<node< >> {   sequence<node<BusinessProperty>> props = node.getGivenBusinessObject().getPersistentBu...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    no null pointer exception

    Hi,i m using the list<> type from the collection language. As described i do not get a null pointer exception when executing the statements ..list<position> mylist;mylist.add(new position());althou...
    • 2 followers
    • 6 comments
    • 0 votes
  • Created

    Strange behaviour of $LOOP$

    Hi,when i use the LOOP macro as in the attached file, i get the following output ...     {      int id = object2Save.getId();    }    {      int kopfId = object2Save.getKopfId();    }    {      int...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    using "can be parent"

    Hi,i derived a PersistantProperty from baselang.Property. I could restrict the user to only use int and String for the type field by using childConcept... e.g.    can be parent     (operationContex...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    mps.baselang.statemachine usage

    Hi,when defining a simple class like thispublic class TestClass extends <none> implements <none> {   <<static fields>>   <<static initializer>>   <<fields>>   <<properties>>   <<initializer>>   <<...
    • 2 followers
    • 1 comment
    • 0 votes
  • Created

    Problem with generator context and mps.baselang.statemachine

    Hi,i developed a OfBean concept, which extends the class concept. Actually, i do not need to extend the class concept, but i want to add a mps.baselang.statemachine to my OfBean. I figured out how ...
    • 2 followers
    • 3 comments
    • 0 votes
  • Created

    Importing generated classes in another tempalte

    Hi,i m generating a couple of entities as Pojo s with MPS, what is quite easy to do. MPS does generate all necessary imports automatically.Now i m looking for a simple java class (with a main()) wh...
    • 3 followers
    • 4 comments
    • 0 votes
  • Created

    Looping over certain type of sub-nodes ..

    Hi,i have another newbie question regarding generation. I have to select some subnodes out of a collection, where node.attributes is a collection of OfAttribute. OfEntityAttribute extends OfAttribu...
    • 2 followers
    • 1 comment
    • 0 votes