Browsed by
Month: November 2018

Hibernate – Tutorials & Examples

Hibernate – Tutorials & Examples

Hibernate All Annotations – Tutorials & Examples @Embeddable: This annotation can be used for the joining tables, by default it is not even necessary with hibernate, but if your intermediate joining table needs any other addtional columns to be added, then you must have @Embeddable annotated class. Do remember, in spring boot projects, we used to create repository for all the entity files, so even though we have embedded class separately, we should not create repository classes for this.  …

Read More Read More

1,037 total views, 1 views today

How to copy files from linux ec2 to your desktop?

How to copy files from linux ec2 to your desktop?

How to copy files from linux ec2 to your desktop? Please install Mobaxterm software, which is available here, this software is available for both community and premium versions. You will be able to download the files from aws ec2 linux machine to your local desktop system using free community version itself. Command Syntax: scp -i DOCKER-PEM-FILE-PATH AWS-EC2-ID:/ec2-path/* /home/mobaxterm/Desktop/   This command copies all the ec2-path folder data to your local system’s desktop location. Example: scp -i aws-pair.pem ec2-user@ec2-1-2-3-4.us-2.compute.amazonaws.com://YOUR_FOLDER/YOUR_FILE /home/mobaxterm/Desktop/  …

Read More Read More

934 total views, 3 views today

Creating keystore.p12 from letsencrypt certificate for spring boot projects:

Creating keystore.p12 from letsencrypt certificate for spring boot projects:

Creating keystore.p12 from letsencrypt certificate for spring boot projects: Step 1: Stop your server If your server is nginx then use the below command to stop the server. sudo service nginx stop   Step 2: Generating new letsencrypt certificate This is to create the new letsencrypt certificate, if you already have one certificate then skip this step. ./certbot-auto certonly -a standalone \ -d ngdeveloper.com -d www.ngdeveloper.com -d admin.ngdeveloper.com here -d takes all this domains for this certificates, meaning the same…

Read More Read More

1,596 total views, 1 views today

Configure kdiff3 for git

Configure kdiff3 for git

Using Git bash for windows run the below commands to add kdiff3 as your git default merge tool, before running the below commands please make sure you have installed kdiff3 and the path is same like below, if different then mention that path and add in the global config. git config –global –add merge.tool kdiff3 git config –global –add mergetool.kdiff3.path “C:/Program Files/KDiff3/kdiff3.exe” git config –global –add mergetool.kdiff3.trustExitCode false git config –global –add diff.guitool kdiff3 git config –global –add difftool.kdiff3.path “C:/Program…

Read More Read More

771 total views, no views today

File upload (with meta data) in Angular 6 & Spring Boot 2

File upload (with meta data) in Angular 6 & Spring Boot 2

File upload (with meta data) in Angular 6 & Spring Boot 2 In Angular side create the component and typescript file similar to this, Part 1: Angular Side Development Angular Template(Html) file: <div class="row justify-content-center"> <label class="ct-input-file">My File Label Here <input type="file" (change)="onFileChange($event)"> <i class="icon-upload"></i> </label> </div> Note: class=”icon-upload” gives upload icon, if you don’t want then you can remove it for older way of file upload button. Angular Component(ts) file: FileUploadService is service class to deal api request and…

Read More Read More

1,953 total views, 2 views today

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ? Please go to the folder where you already installed letsencrypt (first time), path may be, /etc/letsencrypt in my case. Inside that You can find a file called letsencrypt-auto.   Run the below command inside letsencrypt-auto folder: ./letsencrypt-auto renew     Could not find letsencrypt-auto folder ? In my case it is found inĀ /letsencrypt/letsencrypt path   You can also use this below find command to search letsencrypt folder: find…

Read More Read More

956 total views, no views today

Flowable Notes for Beginners

Flowable Notes for Beginners

Flowable Notes for Beginners 1. Flowable is a set of process and tasks inside it. Example snippet (as per bpmn20.xml): Below snippet is only for understanding on how the process and tasks will be created in flowable for any bpmn process. Explanation: couponupload is process id/key created to upload the coupons for a particular shop. This process will have set of tasks in order to complete the whole process, here totally 2 process, one is store already partnered or not…

Read More Read More

1,324 total views, no views today

Angular 4/5/6/7 Notes

Angular 4/5/6/7 Notes

Angular 4/5/6/7 Notes 1. How to run angular application with different configurations ? To run different configuration with ng serve then run the below command, ng serve –configuration=local which will basically looks for the configuration files with local and picks that file configuration for this ng serve. 2. How to build angular universal ? After configuring your angular 7 application to seo specific using angular universal run the below command to build angular universal configured project, npm run build:prod 3….

Read More Read More

869 total views, no views today

Comments to update forked repository git

Comments to update forked repository git

Below are the comments to update your forked repository: git remote add upstream URL_OF_WHERE_YOU_FORKED (only one time to configure the upstream git url). git fetch upstream git merge upstream/BRANCH_NAME_WHICH_YOU_WANT Sidenote: If you want to commit to master then Branch_name can be skipped. git push origin ( to push the changes to my fork repository).   You can use git bash for windows tool and run the above comments inside root directory of your project using the same tool. Git bash…

Read More Read More

805 total views, no views today

Flowable IDM default username and password

Flowable IDM default username and password

Flowable IDM default username and password Flowable is a fantastic tool for BPMN process implementations in java with spring boot frameworks.   You have to download flowable-6.4.0(latest while writing this article) and download the apache tomcat, then move all the below five war files to webapps then do tomcat restart for the deployments. flowable-admin.war flowable-idm.war flowable-modeler.war flowable-rest.war flowable-task.war Then you will be able to see the list of flowable wars deployed in the manager of apache tomcat in this url…

Read More Read More

973 total views, no views today