fine, but if i persist the entity, it got this error:
Unable to locate a single EntityManager. You must provide the persistence
unit name as defined in the persistence.xml using the @PersistenceContext
annotation.
@Inject
@PersistenceContext(unitName = "de.aeits_ERDA-CCIS-EJB_
) and
in EntityManagerManagerImpl)
Hope that helps.
Felix
2015-03-17 11:16 GMT+01:00 Andreas Ernst :
> Hi,
>
> i got a ejb with two entities.
>
> All is working fine, but if i persist the entity, it got this error:
>
> Unable to locate a single EntityManager. You must prov
Hi,
i got a ejb with two entities.
All is working fine, but if i persist the entity, it got this error:
Unable to locate a single EntityManager. You must provide the
persistence unit name as defined in the persistence.xml using the
@PersistenceContext annotation.
@Inject