All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codingapi.springboot.fast.manager.EntityManagerContent Maven / Gradle / Ivy

There is a newer version: 3.3.0.dev1
Show newest version
package com.codingapi.springboot.fast.manager;

import jakarta.persistence.EntityManager;
import lombok.Getter;

public class EntityManagerContent {

    @Getter
    private EntityManager entityManager;


    private EntityManagerContent() {
    }


    @Getter
    private final static EntityManagerContent instance = new EntityManagerContent();


    public void push(EntityManager entityManager) {
        this.entityManager = entityManager;
    }


    public void detach(Object entity) {
        if (entityManager != null) {
            entityManager.detach(entity);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy