May 03 2013 by Kevin Bowersox
 

The following tutorial details how to use JPA/JPQL to query an object model using @NamedQueries.  It explores using @NamedQuery in combination with parameters, query constructors and functions.  To follow along download the base code used for this tutorial from this Git Hub Repository.   Source code for the completed project can be downloaded by clicking the GitHub logo below.

Continue Reading
April 27 2013 by Kevin Bowersox
 

The following tutorial details how to use JPQL to query an object model.  It explores JPQL basics and discusses the risk of SQL Injection.  To follow along download the base code used for this tutorial from this Git Hub Repository.   Source code for the completed project can be downloaded by clicking the GitHub logo below.

Continue Reading
April 12 2013 by Kevin Bowersox
 

The following tutorial details how to use JPA to persist entities that leverage an inheritance relationship using the @MappedSuperclass annotation.  It explores how the annotation is used and gives a brief overview of inheritance.  The tutorial builds off of a project created in the previous post, JPA: Ordering Collections with @OrderBy.  To follow along with this video, you can download the source code for the previous post from the GitHub Repository.  Source code for the completed project can be downloaded by clicking the GitHub logo below.

Continue Reading
April 06 2013 by Kevin Bowersox

The following tutorial details how to order a collection within an entity using the @OrderBy annotation.  It explores how the annotation is used as well as a potential issue with ordering by fields on an embedded object. The tutorial builds off of a project created in the previous post, JPA: Entity Collections.  To follow along with this video, you can download the source code for the previous post from the GitHub Repository.  Source code for the completed project can be downloaded by clicking the GitHub logo below.

Continue Reading
March 29 2013 by Kevin Bowersox

The following tutorial details how to configure an ElementCollection within an entity.  It describes "how" and "why" to use the JPA annotations @ElementCollection and @CollectionTable.  The tutorial builds off of a project created in the previous post, JPA: Embedding Embeddables within Entities.  To follow along with this video, you can download the source code for the previous post from the GitHub Repository.  Source code for the completed project can be downloaded by clicking the GitHub logo below.

Continue Reading
Next 5 Entries Previous 5 Entries