Hello,
Peter has commented on
http://tapestry.apache.org/integrating-with-jpa.html.
You can find the comment here:
http://tapestry.apache.org/integrating-with-jpa.html#comment_1911
Please note that if the comment contains a hyperlink, it must be approved
before it is shown on the site.
Below is the reply that was posted:
~~~~
The code example for multiple persistence units will trigger an
IllegalStateException within PlasticFieldImpl#claim() "Field entityManager of
class UserDAOImpl can not be claimed by @javax.persistence.PersistenceContext
as it is already claimed by @Inject"
As @PersistenceContext is sufficient for injecting, please remove @Inject from
this example.
public class UserDAOImpl implements UserDAO {
à336@à336Ià336nà336jà336eà336cà336tà336
@PersistenceContext(unitName = "DemoUnit")
private EntityManager entityManager;
...
}
~~~~
With regards,
The Apache Tapestry Project.
You are receiving this email because you have subscribed to changes for the
tapestry site.
To stop receiving these emails, unsubscribe from the mailing list that is
providing these notifications.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]