Spring
14 entries
Converting from maven to gradle...
There's a manual install method.. but I prefer automatic installs like the above doesn't everyone For manual install see the site…
calling a spring jpa namedQuery directly
As in Test.java, you can execute a NamedQuery defined in orm.xml directly with the EntityManager..
spring redis integration
Integrating Redis with Spring using spring-data-redis, from the dependency through configuration and the result.
building a website with spring + sitemesh
Let's set up sitemesh. There's almost nothing to change in sitemesh.xml (just the decorators.xml file path) Setup is done once you drop in the xml…
spring jpa save
In jpa you save with the repository.save method Like the class, @OneToMany or @ManyToOne fields can be saved together.
practicing spring jpa @NamedQuery, @NamedNativeQuery
In jpa.. you can query data through a repository with findAll or the findOneBy....
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.
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.
using spring batch
Tried spring-batch recently.. worked out well. Being able to set the transaction commit size and read size separately seems especially nice.
hadoop + spring integration test 2 - hadoop 2.6.x with spring 4.0 (MapReduce WordCount example)
hadoop + spring integration test 2 - hadoop 2.6.x with spring 4.0 (MapReduce WordCount example)