Integrate Jeddict templates to generate full-stack application using ER Diagram #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds integration of Jeddict templates into Payara Starter, enabling the generation of full-stack applications directly from ER Diagrams. With Freemarker templates from Jeddict, developers can effortlessly create JPA Entities, CDI repositories, REST Resources, and Web interfaces (HTML, Bootstrap, JQuery), all visualized with Mermaid.
![image](https://private-user-images.githubusercontent.com/15934072/331989367-1d47f607-ef51-41bd-a306-e336766cb729.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTk0MTYsIm5iZiI6MTcyNDI1OTExNiwicGF0aCI6Ii8xNTkzNDA3Mi8zMzE5ODkzNjctMWQ0N2Y2MDctZWY1MS00MWJkLWEzMDYtZTMzNjc2NmNiNzI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE2NTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzOWQ3MjUyMjg5M2M4NzI1ZjU5ODQxZDhmMjNlMmYwZjUyYzM5OGEzY2Q2MDVjNDJjZWIxYTU0MDkwZmU2NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GiLCuQWI4a3gsYeuyML4VFc9GX_voM-UwULIGuvqyb8)
Additionally, it includes pre-loaded diagrams in the starter project, ready for modification and viewing on the starter page.
![image](https://private-user-images.githubusercontent.com/15934072/331989447-61fffaf6-f6a3-4898-9f02-91a13b323bb9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTk0MTYsIm5iZiI6MTcyNDI1OTExNiwicGF0aCI6Ii8xNTkzNDA3Mi8zMzE5ODk0NDctNjFmZmZhZjYtZjZhMy00ODk4LTlmMDItOTFhMTNiMzIzYmI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE2NTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0MTY1NTI3MjIzYTk0M2U0Y2M2NWU0NzJkYzI0YjM2MTliN2Q4YjI1YjM3NzRiYmY0YTU4ZTMwZjJjZjMyMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.26s-nazmmdMVuxzWXeoa0EeC9bwvBUn33mMDwk9iTpY)
Looking ahead, integration with OpenAI can further enhance the system to generate diagrams based on user requirements. Streamline your development process and embrace the future of application creation!
![image](https://private-user-images.githubusercontent.com/15934072/331990583-51d989b4-84f7-4a8d-a7a9-b1446583fb3f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTk0MTYsIm5iZiI6MTcyNDI1OTExNiwicGF0aCI6Ii8xNTkzNDA3Mi8zMzE5OTA1ODMtNTFkOTg5YjQtODRmNy00YThkLWE3YTktYjE0NDY1ODNmYjNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE2NTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjYWY5ZmVjYzZkNDA0MGNhMTQ3OGUwNjExZDk5ZTMwNTEzOTA5ZTRhMzc0OTgyYjg2NzUwMWVjMmZmNGNlMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-WicNmmyJDEuI5awkzXL_A2CljAJY_nIE1xZb2866H8)
Note: This PR creates a new project named Payara Starter Generator, which includes all these templates and integrated in Payara-UI project.
Generated Source code for the above example:
![image](https://private-user-images.githubusercontent.com/15934072/331997282-59364851-5b48-4569-b07f-01f1024bf483.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTk0MTYsIm5iZiI6MTcyNDI1OTExNiwicGF0aCI6Ii8xNTkzNDA3Mi8zMzE5OTcyODItNTkzNjQ4NTEtNWI0OC00NTY5LWIwN2YtMDFmMTAyNGJmNDgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE2NTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwMThmZjVkZDM5M2Y0NDFkMWViMjAzMWE5ODhkNDlmYjk1MmI0NDg5YjBjNzY1NGUxOTRhZTQ2MjMwY2Q5MzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Tg1CiCyDGYAQKMnY-4BvULB34QRfNxuaEcOtdxFhSB4)
Frontend web page for the generated app:
![image](https://private-user-images.githubusercontent.com/15934072/332000468-74356ba6-9460-4062-9d31-97118c4a7d76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTk0MTYsIm5iZiI6MTcyNDI1OTExNiwicGF0aCI6Ii8xNTkzNDA3Mi8zMzIwMDA0NjgtNzQzNTZiYTYtOTQ2MC00MDYyLTlkMzEtOTcxMThjNGE3ZDc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE2NTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4NzdjM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