background preloader

JavaWorld

JavaWorld

https://www.infoworld.com/category/java

JSF 2.0 + Spring + Hibernate integration example Here’s a long article to show you how to integrate JSF 2.0, Spring and Hibernate together. At the end of the article, you will create a page which display a list of the existing customer from database and a “add customer” function to allow user to add a new customer into database. P.S In this example, we are using MySQL database and deploy to Tomcat 6 web container. 1. Project Structure CoreJava Object class of Java is having predefined toString() method. This method by default Object class calls implicitly when an object created. Overriding toString manually is nothing but implementing this method in our class.The java toString() method is used when we need a string representation of an object. How to make a java class compatible with Set or Map Home Collections intro Lists Maps Sets

Using Facelets Templates - The Java EE 6 Tutorial JavaServer Faces technology provides the tools to implement user interfaces that are easy to extend and reuse. Templating is a useful Facelets feature that allows you to create a page that will act as the base, or template, for the other pages in an application. By using templates, you can reuse code and avoid recreating similarly constructed pages. Templating also helps in maintaining a standard look and feel in an application with a large number of pages. Table 5-2 lists Facelets tags that are used for templating and their respective functionality. Table 5-2 Facelets Templating Tags SQLite in Android SQLite is at the heart of Android's database support. This database was developed with embedded environments in mind - and is used not only by Android but also by Apple's iOS and Blackberry's system as well as lots of other systems with low memory footprint and comparatively little CPU horsepower. Why SQLite in the first place? Of course there is a reason why SQLite is so dominant in the embedded and also the mobile world.

The Java™ Tutorials The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". How to choose which Java collection class to use? Home Collections intro Lists Hibernate One To Many Annotation tutorial with example. Hibernate annotations Welcome to the Hibernate Tutorial Series. In previous tutorial we saw how to implement One to Many relationship using XML mapping. In this tutorial we will modify the source code from previous One To Many XML mapping tutorial and add JPA/Annotation support to it.

Java Tutorial Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This tutorial gives a complete understanding of Java. The Java™ Tutorials The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". Trails Covering the Basics

Hibernate Many To Many Annotation mapping tutorial example. Bi-Directional set mapping Welcome to the Hibernate Tutorial Series. In previous tutorial we saw how to implement Many to Many relationship using XML mapping. In this tutorial we will modify the source code from previous Many To Many XML mapping tutorial and add JPA/Annotation support to it. Chapter 2. Beginning With Roo: The Tutorial Chapter 2. Beginning With Roo: The Tutorial In this chapter we'll build an app step-by-step together in a relatively fast manner so that you can see how to typically use Roo in a normal project. We'll leave detailed features and side-steps to other sections of this manual. In this tutorial you will learn to create a complete Web application from scratch using Roo.

Related:  valensbile