bilalam / self-erp Goto Github PK
View Code? Open in Web Editor NEWCollection of small microservices building up a small erp with JavaFX and Springboot
Collection of small microservices building up a small erp with JavaFX and Springboot
We need to have a custom maven plugin that will be executed in the compile phase of our project and will be responsible for :
1 ) Checking if mysql is already running or not .
2 ) If it is not running , then download the binary of mysql , unzip it and run command to install it .
3 ) Then start up the mysql service , create database in it , create tables in it .
The NamedNativeQuery defined in Visit pojo is not giving correct results , it should give the last id of the record from my table but instead it is giving me 0 , also if i execute it directly using entityManager it is still giving me 0.
Running it on the database in console is giving me right results.
VisitRepositoryCustomImpl.java has the implementation of it .
Path is https://github.com/BilalAM/self-erp/blob/master/visitorservice/src/main/java/self/erp/visitorservice/repositories/VisitRepositoryCustomImpl.java
help......@MSaifAsif
When the mysql is installed initially , we need to create database , tables and put initial data inside them as well so that the spring doesnt crash while setting up the entity beans and service repositories .
LINKED WITH #5
Consider creating a utility class that has some common pre-reqs that are required prior to starting up the erp-application .
Functions like :
startMysql()
checkOrCreateDatabase()
and so on
It is not best practice to have repository in the controller. Best practices suggests to have a service injected into the controller and then the service talks to the repository.
The NamedNativeQuery defined in Visit pojo is not giving correct results , it should give the last id of the record from my table but instead it is giving me 0 , also if i execute it directly using entityManager it is still giving me 0.
Running it on the database in console is giving me right results.
VisitRepositoryCustomImpl.java has the implementation of it .
Path is https://github.com/BilalAM/self-erp/blob/master/visitorservice/src/main/java/self/erp/visitorservice/repositories/VisitRepositoryCustomImpl.java
help......@MSaifAsif
I will most probably change the rest client of commons module to use the Jersey framework instead of the default springboot rest service since Jersey is more easy to use and simpler .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.