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

330 total views, 3 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

467 total views, 9 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

347 total views, 2 views today

» Read more

How to avoid implicit cross joins in JPA ?

How to avoid implicit cross joins in JPA ? When you join two tables and trying to select (column select) from the child table then you will come across this implicit cross join issues. For example we have two entities namely store, coupon and mapping follows, Store Entity: @Entity public class Store { @OneToMany(mappedBy = “store”) private List couponList; public

275 total views, no views today

» Read more

Join two tables using Hibernate in Spring Boot Example

Join two tables using Hibernate in Spring Boot Example: Many enterprise applications whichever using hibernate uses sql queries only for joins still and uses hibernate only for save/update operations. Today we are going to see how to use hibernate to join two tables. We are going to see how to get count(*) using hibernate along with group by function in

326 total views, 1 views today

» Read more

Spring Boot Native Query Example

Spring Boot Native Query Example: In Spring boot, database operations can be performed by implementing CrudRepository<Object, Long> in our @Repository interface. Here¬†Object is our entity class. @Query Annotation: We can execute nativeQueries using @Query annotation. Need to make the nativeQuery boolean to true and provide the native query to value parameter for @Query annotation.   Syntax: @Query(nativeQuery=true, value=”select s.store_name, s.store_url

243 total views, 1 views today

» Read more

Multi select dropdown in Angular 4 Example

Multi select dropdown in Angular 4 Example:   Step 1: Install angular2 multiselect dropdown component npm install angular2-multiselect-dropdown   (or)   npm i –save angular2-multiselect-dropdown     Step 2: Import AngularMultiSelectModule ¬†into @NgModule   import { AngularMultiSelectModule } from ‘angular2-multiselect-dropdown/angular2-multiselect-dropdown’; @NgModule({ // … imports: [ AngularMultiSelectModule, ] // … })     Step 3: Import and use it in your

440 total views, 5 views today

» Read more

Spring Boot with CriteriaBuilder for Dynamic Search Queries

Spring Boot with CriteriaBuilder for Dynamic Search Queries: Spring Boot with CriteriaBuilder for Dynamic Search Queries: When you are developing an enterprise application, you have to provide a search option dynamically with “and” condition. Our grand father way to do is using stringbuilder to construct the query in java and return the result. But hibernate has provided criteria for the

282 total views, 1 views today

» Read more

[Solved] The type CriteriaQuery is not generic;

[Solved] The type CriteriaQuery is not generic; It is because of the incorrect import. CriteriaQuery is available in both hibernate and persistence package. We have to import from persistence package in order to use criteriabuilder. CriteriaQuery should be imported from import javax.persistence.criteria.CriteriaQuery;   not from import org.hibernate.criterion.CriteriaQuery;   Sample snippet: @PersistenceContextprivate EntityManager em; CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<AffiliateUrl> cq =

180 total views, 2 views today

» Read more
1 2 3 4 5