Can NOT find meta class & can NOT insert record in the table
------------------------------------------------------------
Key: GERONIMO-5631
URL: https://issues.apache.org/jira/browse/GERONIMO-5631
Project: Geronimo
Issue Type: Test
Security Level: public (Regular issues)
Components: persistence
Affects Versions: 3.0
Reporter: LiWenQin
Attachments: jpa2.0-test.7z
Hi,
I wrote a jpa 2.0 test case.
In the entity class Course.java:
@ElementCollection
@CollectionTable(name="COURSE_COMMENTS")
private List<Evaluation> evaluation;
Here member "evaluation" contains comments of the course in another
Table:COURSE_COMMENT
I run it on Geronimo 3.0 , howver, inserting record into the Table "COURSE"
is NOT sucessful.
The server gives warning such like this:
WARN [DefaultThreadPool 198] openjpa.MetaData - Meta class
"org.apache.geronimo.javaee6.jpa20.entities.Course_" for entity class
org.apach
e.geronimo.javaee6.jpa20.entities.Course can not be registered with following
ex
ception "java.security.PrivilegedActionException:
java.lang.ClassNotFoundExcepti
on: org.apache.geronimo.javaee6.jpa20.entities.Course_"
Also can Not find meta class Evaluation_
I'm not sure whether I should create meta class(Course_, Evaluation_ and so
on ) befroe deploy the app on the server?
Need I do manual operation such like below:
Eg: javac -classpath path/to/openjpa-all.jar -Aopenjpa.metamodel=true
packageName/Course.java
Or the Geronimo will create meta class automatically?
Could anyone help to have a look at it?
Thanks in advance!
PS: I attached the code in the attachment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.