Spring JpaRepository Example (In-Memory)

This post describes a simple Spring JpaRepository example using an in memory HSQL database. The code example is available from GitHub in the Spring-JpaRepository directory. It is based on the Spring-MVC-With-Annotations example and information available here.

JPA Repository
We implement a dummy bean for this example:

@Entity
@AutoProperty
public class SomeItem {

@Id
@GeneratedValue(


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *