

20
Jan, 14
From today I am going to give basic concept on automated functional testing using Geb and Selenium.Today I am going to explain Selenium concept and in next session I will explain Geb and how to use Selenium in Geb. First-of-all be clear that Selenium and Geb are used...

20
Jan, 14
Spock integration testing without redirected view
Today I am going to explain some basic concept of Spock integration testing without redirected view. Here I am going to check returning model from action and how to test action when it is returning model? class CreateAppController { def addDetail() { def playList = []...

13
Jan, 14
Starting with Mongodb
– Mongodb is basically a database system that is document oriented and Nosql type. -Typically we call a table as a collection and a record as a document as oppose to tables and rows in RDBMS. -One of its advantage is that it does not restrict a us to a structure...

13
Jan, 14
Installing and Configuring MongoDB
MongoDB is a NoSQL database that is cross platform and is a document-based system. It can be easily installed in an Ubuntu server from the command-line. In Ubuntu 12.04 LTS repositories it’s current version is 2.0.4. To install it in Debian / Ubuntu, open up a...

13
Jan, 14
Working with MongoDB using Java
Hello guys, This is my first post on this blog. In this post i am going to explain how to interact with MongoDB using Java.First we need to install MongoDB using apt-get command in Ubuntu. Once we have installed MongoDB, we need a MongoDB jar file(Driver) which we...

13
Jan, 14
7 Steps to deploy grails application in heroku web server
7 Simple steps to deploy your first grails app in Heroku server. Step 1) Install Git Step 2) Create account in Heroku Step 3) Install Heroku Toolbelt Try [php] wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh [/php] 123 [php]wget -qO-...

13
Jan, 14
Show JSON request data in Grails action
Problem : At the time of Stripe Webhook URL integration with my grails application, I was getting an empty request in webhook URL and it confused me a lot. Finally i found out that Stripe sends response back to webhook URL in JSON format. I was not able to print the...

13
Jan, 14
Working mechanism of Grails pagination
I am trying to explain the simple mechanism used in grails pagination . For this I have created brand new application which uses the grails default pagination and column sorting.In my grails-app I just used a domain class as follows: [php] class Book { String title...

6
Jan, 14
Install ftp server on local Linux machine
In this blog post, I am going to discuss that how ftp server is install and configured on local machine. Firstly install the Ftp server on local machine. I am using Ubuntu 12.04. To install ftp server on ubuntu machine: sudo apt-get install vsftpd 1 sudo apt-get...

29
Dec, 13
Configure value-type List in Hibernate with XML mapping
List is a collection in which the indexes of the elements are maintained. Hibernate maintains the same by adding an index column to the collection table. Let’s see how it’s done using the XML mapping. First we need to add the Persistent class. We’ll...

29
Dec, 13
Configure value-type Bag in Hibernate with XML mapping
Bag is an unordered collection that permits duplicate elements. Let’s edit the Student class from our previous post in which a Set property was configured. We’ll use the same class but we’ll replace the set with Bag. Java doesn’t have the...

29
Dec, 13
Configure value-type Set in Hibernate with XML mapping
It’s a common requirement to configure value-type collections in the entity. In this post I’ll walk you through the steps for configuring the Set of value-type collection. We know Set doesn’t allow duplicate entries so it will be interesting to see...

22
Dec, 13
Mapping components in Hibernate using XML
In persistent units we often face a scenario where we think of grouping few similar properties and creating separate persistent entity for them would be expensive. For such situation creating embedded components for grouping such properties makes more sense. The life...

22
Dec, 13
Add subreport in main report dynamically using dynamic jasper
When you make dynamic report, sometimes you need to add subreport. You can add subreport and also set its position dynamically. Also you need to pass data source with this. Here is a code snippet to understand that how can you make subreport in main report...

21
Dec, 13
MongoDB for MySQL Developers : Part 1
MongoDB for MySQL/RDBMS Developers : Part 1 This is my for first post for “Mongodb for Mysql developers series”. I come from RDBMS background and these were things which were new to me: MySQL - MongoDB "Database" - "Database"...

15
Dec, 13
Create simple JPA application.
We’ll be using maven for dependency management and H2 database. Let’s start by adding all the dependencies to the pom.xml. <dependency> <groupId>org.hibernate</groupId>...

15
Dec, 13
Configure connection pool in Hibernate using c3p0
Let’s start by adding the dependency for c3p0 in our application’s pom.xml. <dependency> <groupId>org.hibernate</groupId>...

15
Dec, 13
Using annotations for mapping persistent class in Hibernate
In order to use annotations for mapping in Hibernate we need to annotate our persistent classes. We’ll be replacing the XML mapping configuration with annotations. Let’s reuse the code we have already done in this post. We’ll remove the...

15
Dec, 13
Create simple Hibernate application using XML mapping configuration.
Today, We’ll create a simple Hibernate project with a single persistent class Message using Maven through XML configuration and mapping. We’ll be using H2 database. Hibernate is the most popular ORM tool which is quite rich in features. It promotes the...

15
Dec, 13
Grails SpringSecurity Session testing
Today I am going to explain Grails springSecurity Session testing. Let us make a controller and action that is mentioned below. Here I have made a controller named as UserController and a check action that will check for user authentication and I have made the...
Recent Comments