In the following code I am trouble with my injected EnitityManager, which always shows up as null;
public class GenericController extends Ab
I think you need a file persistence.xml:
persistence.xml
com.domain.MyClass
I think it will not work if the file has a different name, especially not since you don't tell the EntityManager factory the new name anywhere.