Enhancing a persistent class

2007-07-04 Thread Joshua Jackson
Dear all, I received this exception when executing a entitymanager.persist. org.apache.openjpa.persistence.ArgumentException: Attempt to cast instance "[EMAIL PROTECTED]" to PersistenceCapable failed. Ensure that it has been enhanced. Why does this occur? How do I solve it? This same code work

Injecting EntityManager to a web controller

2007-06-06 Thread Joshua Jackson
Dear all, If I deploy my webapps to a server that has OpenJPA in it (let's say Geronimo). How do I inject EntityManager to my web controller? Is it the same way as shown in OpenJPA examples? Thanks in advance -- Let's create a highly maintainable and efficient code YM!: thejavafreak Blog: http

Injecting Entity Manager to POJO/Form Bean

2007-06-01 Thread Joshua Jackson
Dear all, How do I get the EntityManager injected to my web Form Bean / POJO? Currently I'm deploying my apps that uses openjpa as the persistence implementation on an appserver, but I still can not get the EntityManager injected in my POJO. Where can I find the reference regarding this? Thanks