vulab | Monthly Archive | December

Archive | December, 2014

Posted on 26 December 2014 by Jawahar Jasthi

Cutomized object sorting in java using Comparable

There can be a situation where  a  list of objects need  to be sorted a particular way .This can be easily achieved by using comparable interface. The following example shows the usage of comparable interface to sort list of snacks using comparable interface . package com.vulab.comparable.example; /** * @author jawahar * */ public class Snack […]

Continue Reading

0 Comments

Posted on 11 December 2014 by Jawahar Jasthi

Custom annotations in java

Annotations construct was introduced as a part of Java SE 5.Custom annotations are rarely used at enterprise level . By definition an annotation is a metadata that can be added to Java source code. Annotations can be added for  classes, methods, variables, parameters and packages. In general annotations are tags that can be used by a utility class for […]

Continue Reading

0 Comments

Posted on 06 December 2014 by Srinivas Nelakuditi

Apache Hadoop 2.6 is Available Now.

Congrats to Apache Hadoop Community on releasing the Hadoop 2.6 version. Yarn storage features have been upgraded in this version. See the Hadoop 2.6.0 Release Notes for details. Try it out and let us know if you find any bugs or interesting enhancements.

Continue Reading

0 Comments

Posted on 06 December 2014 by Jawahar Jasthi

Pagination with Hibernate ORM or JPA

Pagination of search results is a common requirement for many applications .Database pagination allows you to go through a result set in manageable chunks. This is an important feature when a result set is large. Imagine if the user selects the first result of 500 results returned. Essentially 499 results were wasted. This very taxing […]

Continue Reading

0 Comments