Composite Key with JPA and Hibernate

Composite Key with JPA and Hibernate In this article let discuss on How to map Composite Key  with JPA and Hibernate Domain Model A relational database composite key contains two or more columns which together for the primary key of a given table. In the diagram...

Difference between Entity vs Model

Difference between Entity vs Model Difference between Entity vs Model Entity: An entity represents a single instance of your domain object saved into the database as a record. It has some attributes that we represent as columns in our tables. Model: A model typically...

Java 8: Streams – Part 1

What is Streams? Stream is a new abstract layer introduced in Java 8, It represents a sequence of objects from a source, which supports aggregate operations. To understand better, lets take basic sql function distinct. SELECT DISTINCT(USER_TYPE_ FROM...