[hibernate-issues] [Hibernate-JIRA] Created: (METAGEN-44) getting Runtime error message "o.h.e.m.MetadataContext - Unable to locate static metamodel field"

Young Lee (JIRA) noreply at atlassian.com
Tue Oct 26 11:36:47 EDT 2010


getting Runtime error message "o.h.e.m.MetadataContext - Unable to locate static metamodel field"
-------------------------------------------------------------------------------------------------

                 Key: METAGEN-44
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-44
             Project: Hibernate Metamodel Generator
          Issue Type: Bug
    Affects Versions: 1.1.0.CR1
            Reporter: Young Lee
            Assignee: Hardy Ferentschik
         Attachments: test.jar

I have a @MappedSuperClass declared as

    @MappedSuperClass
    public abstract class IdentifiableComponent<T extends EmbeddableId> extends RecordTimestamp2 implements Serializable

and my Entity class declared as

    @Entity
    public class AppRegistration extends IdentifiableComponent<AppRegistrationId> 

and the Composite Id class declared as

    @Embeddable
    public class AppRegistrationId implements EmbeddableId

The metamodel is generated properly, but at runtime I get the following error message

    o.h.e.m.MetadataContext - Unable to locate static metamodel field : com.playspan.lookup.model.AppRegistration_#id


I've tried adding @IdClass(AppRegistrationId) annotation to the AppRegistration Entity class, but still 
I get the same error message.

Please tell me what I am doing wrong.  Thanx in advance.

Attached is a complete sample buildable maven project with the above classes

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list