Fixed: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2016 12:53:58 +0000 (14:53 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 16 Aug 2016 17:49:29 +0000 (19:49 +0200)
commit682a257d3ea985fdc7a3b1a530eac5afd0e6612e
tree233d58ec90dff789d95ec0bfd22754b3c0c61b19
parent88607c66dfb4dfbae7e314c64f197f961e6f594e
Fixed: (please cherry-pick)
- em.remove() needs a managed entity, not a one passed from e.g. a controller
- still this method may throw an exception, e.g. when an other entity (table) references this entity
- but since deleteCellphoneNumber() *should* delete cell phone numbers, it doesn't care if the entity is still referenced.
- this needs to be taken care of the controller and not the EJB (job-executor)
src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java