Generate Web Application, use database model
Hello,
I'm very interested in MPS. I watched a lot of tutorials and I have a concrete idea what I want to do with MPS. But I'm not 100% sure if I can do this with MPS.
My plan is to use an external datamodel that I've created with Power Designer. From there I want to reuse the information about tables and views and map these information to an entity dsl created with MPS. The plan is to reference tables/views from the entities.
In the next step I want to describe CRUD interfaces inside a MPS model. Theses CRUD interfaces should reference entities, that should be shown/edited with these CRUD interfaces.
Finally I want to create a generator, that should generate JPA entities and a CDI/JSF/EJB based web application.
My questions are:
I'm happy about every comment, so please respond.
Best regards
Kim
I'm very interested in MPS. I watched a lot of tutorials and I have a concrete idea what I want to do with MPS. But I'm not 100% sure if I can do this with MPS.
My plan is to use an external datamodel that I've created with Power Designer. From there I want to reuse the information about tables and views and map these information to an entity dsl created with MPS. The plan is to reference tables/views from the entities.
In the next step I want to describe CRUD interfaces inside a MPS model. Theses CRUD interfaces should reference entities, that should be shown/edited with these CRUD interfaces.
Finally I want to create a generator, that should generate JPA entities and a CDI/JSF/EJB based web application.
My questions are:
- Is it a good idea to this with MPS? Are there any reasons why it can't work?
- Has anybody done something similiar and can tell me some of the made experiences?
- Is there a best practice how to play with external models (e.g. transform it into an MPS model)?
I'm happy about every comment, so please respond.
Best regards
Kim
Please sign in to leave a comment.
What I have been able to do until now are the following:
But that is where my story is stuck at. I want to extend the generation of not just the entities, but also the following:
And then:
All seems likely doable, but considering that all of these tasks are _not a part of any of my core projects, the ideas seem to be in a waiting state.
I have seen a white paper where Jetbrains has published their internal use of MPS in their product, YouTrack. They have claimed elsewhere that they would open up some pieces of the code for the others to benefit from their learning and experience.
Share me your experience here into this group or you may contact me [as _at_ 8327.co.za ]
Regards
Amarjeet