Skip to content

Instantly share code, notes, and snippets.

View pveeckhout's full-sized avatar

Pieter Van Eeckhout pveeckhout

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pveeckhout on github.
  • I am pveeckhout (https://keybase.io/pveeckhout) on keybase.
  • I have a public key whose fingerprint is 38D3 1D25 ADDF 17C8 2E57 E107 928B EB9A 94A2 B5D7

To claim this, I am signing this object:

@pveeckhout
pveeckhout / AbstractGenericDAOImpl
Last active August 28, 2023 09:48
Generic implementation of JPA DAOs and Services with Spring 4.0.0 requiring no additional code written for basic CRUD.
package com.pietervaneeckhout.dao.impl;
import com.pietervaneeckhout.dao.GenericDao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;