Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
Witty af.

precompiled

👻
Witty af.
View GitHub Profile
View insertIndividualFixture.java
@PersistenceContext
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.