Skip to content

Instantly share code, notes, and snippets.

Witty af.


Witty af.
View GitHub Profile
transient EntityManager entityManager;
public static final EntityManager entityManager() {
EntityManager em = new IndividualFixture().entityManager;
if (em == null) throw new IllegalStateException("Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)");
return em;
public void persist() {
You can’t perform that action at this time.