[Solved] your global angular cli version is greater than your local version

[Solved] your global angular cli version is greater than your local version Root cause: If you have developed your angular-cli project in some version, say 1.0.3 in some machine and you are trying to build/compile in the other system which is having higher angular-cli version, say 1.4.2 then you will get this warning message “your global angular cli version is

84 total views, 19 views today

» Read more

[Solved] node sass could not find a binding for your current environment windows 64-bit with node.js 6.x

[Solved] node sass could not find a binding for your current environment windows 64-bit with node.js 6.x Root cause: This issue will happen if you have moved your angular cli project from 32bit to 64bit environment. Ensure you are rebuilding the node-sass to resolve this issue.   Command to rebuild: npm rebuild node-sass   Issue Screenshot:     Fixing using

81 total views, 11 views today

» Read more

Understanding @JsonIgnore with JPA Hibernate

Understanding @JsonIgnore with JPA Hibernate @JsonIgnore Ignores from serialization and deserialization to and from JSON. Which means if you are calling REST API from anywhere then your attribute will not be present in JSON request/responses. But it will be persisted by JPA persistence.   I have Coupon and Category Model with Many to Many mapping: Here in coupon model I

171 total views, 1 views today

» Read more

Understanding @Temporal and @JsonFormat in JPA Hibernate

Understanding @Temporal and @JsonFormat in JPA Hibernate Many of us prefer to use varchar even for date fields due to difficulty of date related db operations. But it is strongly not recommended to use varchar for date fields and highly advicable to use datetime or timestamp in MySQL. Today we are going to see how to use datetime field with

142 total views, 1 views today

» Read more

Spring Boot + EhCache Hibernate Working Example

Spring Boot + Ehcache Hibernate Working Example: When I was trying to populate JSON records in my angular app (just 1885 records only), it took around 11 seconds and in angular side I am just populating in the datatable. So I thought to implement ehcache with spring boot to make it faster. After implementing that successfully I am really surprised

177 total views, 1 views today

» Read more

[Resolved] java.util.LinkedHashMap cannot be cast to org.json.simple.JSONObject

[Resolved] java.util.LinkedHashMap cannot be cast to org.json.simple.JSONObject This issue may happen for various use cases, I have explianed my usecase with the explanation below, hope it helps someone. My JSON string / JSON response sample is: {“itemName”:”Amazon”,”id”:1}   Issue code: for(int i=0;i<selectedStoresJsonArray.size();i++){ JSONObject jsonObj = (JSONObject) selectedStoresJsonArray.get(i); if(null!=jsonObj.get(“itemName”) && !jsonObj.get(“itemName”).toString().isEmpty()){ tempSelectedStores.add(jsonObj.get(“itemName”).toString()); } }   Here JSONObject is not knowing the

117 total views, 1 views today

» Read more

[Resolved] Illegal attempt to dereference path source [null.categoryList] of basic type

[Resolved] Illegal attempt to dereference path source [null.categoryList] of basic type This issue may happen for various use cases, I have explianed my usecase with the explantion, hope it helps someone.   Issue code: Expression catInExp = couponRoot.get(“categoryList”).get(“categoryName”); Predicate categoryInPredicate = catInExp.in(tempCategoryNamesSelected); allPredicates.add(categoryInPredicate);   Code Fixed: Expression catInExp = couponRoot.join(“categoryList”).get(“categoryName”); Predicate categoryInPredicate = catInExp.in(tempCategoryNamesSelected); allPredicates.add(categoryInPredicate);   My Coupon Model: @Entity

111 total views, 3 views today

» Read more

How to add font-awesome in angular 4?

How to add font-awesome in angular 4? Font-awesome is for awesome icons to display across the applications like calendar icon/delete/edit/loading icons and many more. It’s just a 3 simple step process to add and make use font awesome in angular 4.   Step 1: Install font-awesome npm install –save font-awesome angular-font-awesome   Step 2: Check the path to confirm the

154 total views, 2 views today

» Read more

Block UI in Angular 4 Example

Block UI in Angular 4 Example: In our last post, I have explained how to use ng-spin-kit spinner component to display loading/spinner icons. But it was not blocking the UI, so user may abrupt while loading the data. So it is highly recommended to block the UI whenever some data loading happening to avoid unexpected system behaviours. ng-block-ui is the

168 total views, 1 views today

» Read more

Angular 4 Loading / Spinner ng-spin-kit component Example

Angular 4 Loading / Spinner ng-spin-kit component Example: It is our responsible to show the user about the process to make them understand what is happening currently. So loading/spinners are widely used to show the current progress (using progress) or normal loading icon. Today we are going to see how to use ng-spin-kit angular spinner component to show while data

178 total views, 4 views today

» Read more
1 2 3 60