Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Hibernate Example Code Using Annotations

Hibernate annotations is the powerful way to provide the metadata for the Object and Relational Table mapping. All the metadata is clubbed into the POJO Java file along with the code which helps the user to understand the table structure and POJO simultaneously during the development. In this tutorial, we will explain how to configure Hibernate annotations to define mapping ...

Read More »

Hibernate Example Directory Structure

In this tutorial, I will show you how to setup a Hibernate project with Eclipse. 1. Introduction Hibernate is an ORM (Object relational mapping) tool for java applications. ORM provides a technique for mapping a data representation from object model to relational data model with an SQL (Structured Query Language) based database schema. Hibernate provides data retrieval facilities, the data query, ...

Read More »

Hibernate JNDI Example

A database connection is expensive to make, yet all web applications use it. That is why most of the servlet containers provide built-in support for connection pooling. We can leverage this connection pooling in any webserver by registering the datasource via the JNDI context. In this tutorial, we will explain how to configure a datasource in Tomcat and how to ...

Read More »

Hibernate Mapping Types Example

Hello, in this tutorial we will see the different mapping types that are available in Hibernate. 1. Introduction Hibernate is a framework that simplifies the development of Java application to interact with the database. It is an open source, lightweight, ORM (Object Relational Mapping) tool. 1.1 What is Hibernate? Hibernate is the Opensource light weight ORM (Object Relational Mapping) based ...

Read More »

MongoDB Full Text Search Tutorial

Hello, in this tutorial we are going to explore the full-text search functionalities of MongoDB right from fundamentals. MongoDB uses text indexes to perform the different full-text search operations and is case sensitive. 1. Introduction MongoDB, one of the leading NoSQL databases, is well known for its fast performance, flexible schema, scalability and great indexing capabilities. At the core of ...

Read More »

MongoDB Bulk Update Example

Hello, in this tutorial we will see a study and understand the implementation of bulk update in MongoDB. MongoDB update is used to update a document in a collection. 1. Introduction MongoDB is a document-oriented NoSQL database used for high volume data storage and provides high performance, high availability and automatic scaling. 1.1 What is MongoDB? MongoDB is a document ...

Read More »

Java Nio FileChannel Example

The FileChannel is a Java Nio Channel implementation for working with a file. It facilitates reading, writing, mapping and manipulating a file. The examples in this tutorial will be demonstrated via test cases with no explicit Charset specified when encoding and decoding text from ByteBuffers. 1. Introduction The FileChannel has a rich hierarchy of interfaces extending to it a diverse set of behaviors ...

Read More »

How to Check the MongoDB Version

Hello, in this tutorial we will see how to check the exact version of the installed MongoDB. 1. Introduction If you have installed the MongoDB application on Windows or Ubuntu operating system and you don’t remember the version, then follow the below steps to check the MongoDB version. It’s very simple to check the version of MongoDB. 1.1 What is ...

Read More »

Spring Autowiring Tutorial

One of the main tenets of the Spring framework is Dependency Injection (DI). The framework implements DI by using @Autowired annotations. These annotations were introduced starting with Spring 2.5. By using this annotation, one can leave a lot of configuration overheads and leave the handling of injection of beans to Spring. Table Of Contents 1. Introduction 2. Setup Maven Project ...

Read More »

When to Use or Not to Use MongoDB

Hello, in this tutorial we will see the pros and cons of using the MongoDB. 1. Introduction MongoDB is a popular open-source document-oriented database developed by 10gen, later called the MongoDB Inc. In this case, documents are created and stored in BSON files, Binary JSON (JavaScript Object Notation) format, so all JS types of data are supported. That being the ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns