Jpa
5 entries201511 · 13
calling a spring jpa namedQuery directly
As in Test.java, you can execute a NamedQuery defined in orm.xml directly with the EntityManager..
Spring1 min
201510 · 21
spring jpa save
In jpa you save with the repository.save method Like the class, @OneToMany or @ManyToOne fields can be saved together.
Spring1 min
201510 · 08
practicing spring jpa @NamedQuery, @NamedNativeQuery
In jpa.. you can query data through a repository with findAll or the findOneBy....
Spring1 min
201510 · 07
spring jpa query practice
Tested entity mapping plus queries.. Query conditions 1. When fetching a Member.. also fetch the member's images... and the list of inters 2.
Spring3 min
201510 · 05
spring jpa setup and test (maven config)
I develop with mybatis most of the time.. But JPA is supposedly the trend, so I wired it into a small project.
Spring3 min