Home » Author Archives: Eugen Paraschiv (page 3)

Author Archives: Eugen Paraschiv

REST Pagination in Spring

spring-interview-questions-answers

This is the seventh of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. This article will focus on the implementation of pagination in a RESTful web service. The REST with Spring series: Part 1 – Bootstrapping a web application with Spring 3.1 and Java based ...

Read More »

The persistence layer with Spring 3.1 and Hibernate

jboss-hibernate-logo

1. Overview This article will show how to implement the DAO with Spring and Hibernate. For the core Hibernate configuration, see the articles about Hibernate 3 and Hibernate 4 with Spring. 2. No More Spring Templates Starting Spring 3.0 and Hibernate 3.0.1, the Spring HibernateTemplate is no longer necessary to manage the Hibernate Session. It is now possible to make ...

Read More »

Transaction configuration with JPA and Spring 3.1

spring-interview-questions-answers

1. Overview This tutorial will discuss the right way to configure Spring Transactions, use the @Transactional annotation and common pitfalls. For a more in depth discussion on the core persistence configuration, check out the Spring with JPA tutorial. There are two distinct ways to configure Transactions – annotations and AOP – each with their own advantages – we’re going to ...

Read More »

Simplifying the Data Access Layer with Spring and Java Generics

spring-interview-questions-answers

1. Overview This article will focus on simplifying the DAO layer by using a single, generified Data Access Object for all entities in the system, which will result in elegant data access, with no unnecessary clutter or verbosity. 2. The Hibernate and JPA DAOs Most production codebases have some kind of DAO layer. Usually the implementation ranges from multiple classes ...

Read More »

The Persistence Layer with Spring Data JPA

spring-interview-questions-answers

1. Overview This article will focus on the configuration and implementation of the persistence layer with Spring 3.1, JPA and Spring Data. For a step by step introduction about setting up the Spring context using Java based configuration and the basic Maven pom for the project, see this article. The Persistence with Spring series:       Part 1 – ...

Read More »

The Persistence Layer with Spring 3.1 and JPA

jboss-hibernate-logo

1. Overview This is tutorial shows how to set up Spring with JPA, using Hibernate as a persistence provider. For a step by step introduction about setting up the Spring context using Java based configuration and the basic Maven pom for the project, see this article. 2. The JPA Spring Configuration with Java To use JPA in a Spring project, ...

Read More »

REST Service Discoverability with Spring, part 5

spring-interview-questions-answers

This is the fifth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. The previous article introduced the concept of Discoverability for the RESTful service, HATEOAS and followed with some practical scenarios driven by tests. This article will focus on the actual implementation of discoverability ...

Read More »

RESTful Web Service Discoverability, part 4

spring-interview-questions-answers

This is the fourth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. The article will focus on Discoverability of the REST API, HATEOAS and practical scenarios driven by tests. Introducing REST Discoverability Discoverability of an API is a topic that doesn’t get enough well ...

Read More »

Bootstrap a Web Application with Spring 3

spring-interview-questions-answers

1. Overview This is the first of a series of tutorials about setting up a RESTfull web application using Spring 3.1 with Java based configuration. The article will focus on bootstrapping the web application, discussing how to make the jump from XML to Java without having to completely migrate the entire XML configuration. 2. The Maven pom.xml     <project ...

Read More »

Securing a RESTful Web Service with Spring Security 3.1, part 3

spring-security-logo

1. Overview This tutorial shows how to Secure a REST Service using Spring and Spring Security 3.1 with Java based configuration. The article will focus on how to set up the Security Configuration specifically for the REST API using a Login and Cookie approach. 2. Spring Security in the web.xml The architecture of Spring Security is based entirely on Servlet ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.