You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "LiWenQin (JIRA)" <ji...@apache.org> on 2010/10/25 08:15:19 UTC

[jira] Closed: (GERONIMO-5631) Can NOT find meta class & can NOT insert record in the table

     [ https://issues.apache.org/jira/browse/GERONIMO-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LiWenQin closed GERONIMO-5631.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

The problem has been resolved so that close it.

> 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
>            Assignee: Shawn Jiang
>             Fix For: 3.0
>
>         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.