[hibernate-issues] [Hibernate-JIRA] Updated: (METAGEN-44) getting Runtime error message "o.h.e.m.MetadataContext - Unable to locate static metamodel field"
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Wed Nov 3 12:06:50 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated METAGEN-44:
-------------------------------------
Fix Version/s: 1.x
> 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
> Fix For: 1.x
>
> 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