Category Archives: Pocket

Hibernate / JPA 2 Persistence Annotations Tutorial

from Pocket http://ift.tt/1FvqQ7Z

This Hibernate (or JPA 2) Persistence Annotations Tutorial contains overview of all important annotations which you may need while annotating your java POJOs to make them act as persistent JPA entities.

You think you know everything about CDI events… Think again!

from Pocket http://ift.tt/1poOQBY

CDI events are one of the shiniest feature in the CDI specification. They are a easy to understand and use and are a straight forward implementation of the Observer Design Pattern.

EJB 3.1 @LocalBean vs no annotation

from Pocket http://ift.tt/1sRGAJO

The rules are (from memory): Bean has a @LocalBean annotation -> bean has a no-interface view Bean has a @Local annotation -> bean has a local view Bean has a @Remote annotation -> bean has a remote view Bean has no view annotations, but directly implements an interface which has a @Local annotatio

Cómo crear una API REST usando Node.JS

from Pocket http://ift.tt/1i8gtba

En esta entrada explicaremos como crear un Web Server que sirva una API RESTful usando para ello la tecnología de Node.js y todo el JavaScript que podamos, incluyendo la base de datos (MongoDB) y el plugin para conectarnos a ella y mapear los modelos (Mongoose).

Rubrica: As apps dos nossos leitores… [13]

from Pocket http://ift.tt/UvGoWq

Olá a todos! Cá estamos nós para mais uma rubrica que pretende divulgar as apps desenvolvidas pelos nossos leitores. Fiquem atentos aos fantásticos trabalhos que temos para vos mostrar e, já sabem que se quiserem ver aqui a vossa app, enviem-nos um email para: divulga_apps@pplware.com

Compound assignment operator [i += j] is not same as [i = i + j] in java

from Pocket http://ift.tt/1tMBluS

We all have used syntax’s like i += j and i = i + j thousands of times in our day to day programming. In first sight, they both look similar. In fact, they will result in same output in almost all of the cases in practical cases. But, to surprise you they are not similar.

Java 8 Lambda expressions example

from Pocket http://ift.tt/1o3kOmE

While implementing single method interfaces – often to be passed as a parameter to another function as callbacks – we often end up writing an anonymous class. Considering what we want to achieve, we may come up with something that is unnecessarily verbose.

The correct short name is “Java EE”

from Pocket http://ift.tt/YMz7wu

When the enterprise Java platform was first introduced, it was called “Java 2 Platform, Enterprise Edition”, with the abbreviation “J2EE”. When we revised the naming of the Java platform, we didn’t just drop the “2”.

Java 8 Interface Default Methods example

from Pocket http://ift.tt/1k69Xqc

One of the new features introduced in Java 8 consists in interface default methods, also know as Extension Methods. As we can see above, TestInterface is providing a default implementation for method methodOne.

Custom Expandable ListView Tutorial – Android Example

from Pocket http://ift.tt/1fqUYHM

In this example creating a custom Expandable ListView with parent and child rows. parent rows contains texts,images and a checkbox. child rows contains texts,images. Creating custom adapter to create Expandable ListView rows . 1. Create Model classes for parent rows(Parent.