> I'm not sure this is a good idea... while some entities have repositories, > not all do.
My assumption was that this keyword is optional. If present then (in addition to the entity type) a second type with the plural entiity name and the corresponding annotation "@DomainService(repositoryFor = <entity class>)” is generated. > (As mentioned elsewhere though) I think this conversation should probably > live on the isisscript repo on github, rather than here... either in issues > or on its wiki. Sure, makes sense. So let’s move this conversation to the GitHub repo. > Torsten... do you have a spec for the DSL? perhaps it could live on that > repo's wiki so we could iterate on it... that might be the most efficient? There’s no spec yet. The grammar is evolving while generating certain aspects of the artefacts. E.g. initially the return type of the “title” UI hints expression was “String” but now it’s inferred from the expression. A corresponding validator check has to make sure that the inferred return type does make sense :-) I'm creating a wiki page describing the current implementation. /Torsten > On 07 Jul 2015, at 23:55, Dan Haywood <[email protected]> wrote: > > On 7 July 2015 at 22:35, Jürgeleit Torsten <[email protected]> > wrote: > >> >> >>> Also not clear to me if it has any predefined DDL for Repositories for >> defined entities and/or services. >> >> The DSL part with the notion of a repository is not started yet. But it’s >> an additional keyword within an “entity” which provides CRUD actions, e.g. >> >> entity SimpleObject { >> repository { >> create(..) { >> ... >> } >> listAll() { >> ... >> } >> } >> } >> >> At the end of the day it’s a service with additional entity-related >> conventions and validations. >> >> Is this what you’re looking for? >> > > > I'm not sure this is a good idea... while some entities have repositories, > not all do. Rather, repositories are merely one type of domain service... > as per @DomainService(nature=...), where nature=DOMAIN (not visible in the > UI). Although not mandatory, in a large scale app normally the > nature=DOMAIN services are injected into the other nature=VIEW... services. > > > (As mentioned elsewhere though) I think this conversation should probably > live on the isisscript repo on github, rather than here... either in issues > or on its wiki. I wanted to post a message here just so that the wider > Isis community were aware of what you've been doing. > > > Torsten... do you have a spec for the DSL? perhaps it could live on that > repo's wiki so we could iterate on it... that might be the most efficient? > > Cheers > Dan > > > > >> /Torsten >> > [1] http://xtend-lang.org/ <http://xtend-lang.org/> >> >> >> >> >>> On 07 Jul 2015, 00:26:19 CEST, GESCONSULTOR <[email protected] >> <mailto:[email protected]>> wrote: >>> >>> Wow !!!! >>> >>> Really nice, Torsten !!! >>> >>> Seems really easy to begin with and as powerful as full Java >> implementation ... >>> >>> Just need to try if it. >>> >>> Also not clear to me if it has any predefined DDL for Repositories for >> defined entities and/or services. >>> >>> Thanks!!! >>> >>> Oscar >>> >>> >>> >>>> El 6/7/2015, a las 23:43, Dan Haywood <[email protected] >> <mailto:[email protected]>> escribió: >>>> >>>> Hi folks, >>>> >>>> A while back someone (I forget who) brought my attention to sculptor >> [1], a >>>> tool that uses an XText DSL to target "conventional" DDD apps. I >> raised a >>>> ticket [2] to see if the author (Torsten Juergeleit) would be >> interested in >>>> targetting Isis also. >>>> >>>> A few months on, and Torsten's come back to me with what looks like a >>>> pretty substantial prototype [3]. >>>> >>>> Just wanted to flag it up here in case anyone was interested in joining >>>> in with the conversation / using the DSL / collaborating further. >>>> >>>> Cheers >>>> Dan >>>> >>>> >>>> [1] http://sculptorgenerator.org/ <http://sculptorgenerator.org/> >>>> [2] https://github.com/sculptor/sculptor/issues/158 < >> https://github.com/sculptor/sculptor/issues/158> >>>> [3] https://github.com/vaulttec/isis-script < >> https://github.com/vaulttec/isis-script> >>> >> >>
