Hello, I would like to perform ejbql queries from the entity beans. This way I could customize my getters and add some very handy transient methods.
Is there a way to do this ? I have tries to declare an entityManager in the different fashion : @PersistenceContext EntityManager em; @PersistenceContext(type=EXTENDED) EntityManager em; @In EntityManager em; But I get | Caused by: java.lang.IllegalArgumentException: @PersistenceContext may only be used on session bean or message driven bean components: employee | Does anyone has ever managed to do this ? regards Vincent View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109655#4109655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109655 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
