package org.example.demo.praktikum2;

import jakarta.ejb.Stateless;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;

@Stateless
public class FirmaService implements FirmaServiceRemote {

    @PersistenceContext
    private EntityManager em;

    @Override
    public int speichereFirma(Firma m) {
        em.persist(m);
        return m.getId();
    }
}
