Skip to main content

Posts

JDBC üçün qurulmuş Object Mapping (Heç bir set istifadə etmədən query-ni obyektə doldurun)

JDBC üçün qurulmuş Object Mapping Fərz edək ki, belə bir querymiz var select id, date, amount, user_id, user_name, user_surname, company_id, company_name və belə bir classımız var public class Payment {     private Long id; <- id     private String date;   <- date     private Double amount; <- amount     private User user; <- user_id, user_name, user_surname, company_id, company_name } istəyirik ki, şəkildə göstərildiyi kimi id, date, amount dolsun -> Payment obyektinə user_id, user_name, user_surname, company_id, company_name dolsun -> Payment içindəki User obyektinə. Bunun üçün aşağıdakı kitabxanını istifadə etməklə heç bir set etmədən bunu əldə edə bilərik.   https://github.com/sarkhanrasullu/jdbcObjectMapper/blob/master/src/main/java/com/bsptechs/usage/Payment.java Kiçik bir istifadə qaydası göstərilib aşağıda. /* * To change this license header, choose License Headers in P...
Recent posts

How to deploy React app in Github Pages(gh-pages)

1.add scripts{ ... "predeploy": "npm run build", "deploy":"gh-pages -d build" ... } in package.json scripts part. 2.add "homepage":"https://username.github.io/reponame/" in package.json root { "name": "wordmemorizer", "version": "0.1.0", "private": true, "homepage":"https://username.github.io/reponame/" ... } 3. install npm install -g ghp npm install --save gh-pages 4. after installation execute npm run deploy 5.after npm run deploy in github repo new branch "gh-pages" automatically will be created. go to repo settings in github.com and in GitHub Pages section change Source to gh-pages branch, otherwise it will show only readme file Video: https://www.youtube.com/watch?v=tf5qFEyOafw

GitHub ilə bir başa dummy server qurmaq

Integration üçün əlinizdə Json var lakin backend servicelər hazır deyil. Aşağıdakı linkdə istifadə edərək, dummy server istifadə edə bilərsiniz. Heç bir installation lazım deyil, sadəcə json-u atırsınız github-a və https://my-json-server.typicode.com/ <your-username>/<your-repo> formasında çağırırsınız. Vəssalam. https://my-json-server.typicode.com