Issue Type: Bug Bug
Assignee: Hardy Ferentschik
Components: metamodel
Created: 30/Jul/12 12:55 AM
Description:
Caused by: java.lang.NullPointerException
	at org.hibernate.metamodel.internal.source.annotations.EntityHierarchyBuilder.findRootEntityClassInfo(EntityHierarchyBuilder.java:182)
	at org.hibernate.metamodel.internal.source.annotations.EntityHierarchyBuilder.createEntityHierarchies(EntityHierarchyBuilder.java:85)
	at org.hibernate.metamodel.internal.source.annotations.AnnotationMetadataSourceProcessorImpl.extractEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:181)
	at org.hibernate.metamodel.internal.MetadataImpl.processMappings(MetadataImpl.java:311)
	at org.hibernate.metamodel.internal.MetadataImpl.<init>(MetadataImpl.java:190)
	at org.hibernate.metamodel.internal.MetadataBuilderImpl.buildMetadata(MetadataBuilderImpl.java:94)
	at org.hibernate.metamodel.MetadataSources.buildMetadata(MetadataSources.java:128)
	at org.hibernate.testing.junit4.BaseCoreFunctionalTestCase.buildMetadata(BaseCoreFunctionalTestCase.java:167)
	at org.hibernate.testing.junit4.BaseCoreFunctionalTestCase.buildSessionFactory(BaseCoreFunctionalTestCase.java:145)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.hibernate.testing.junit4.TestClassMetadata.invokeCallback(TestClassMetadata.java:196)
	... 14 more

this can be reproduced by org.hibernate.test.annotations.lob.LobTest (with @FailureExpectedWithNewMetamodel removed)

we only add @Entity classes into Metadata, but not the @MappedSuperclass, this used to be work with Configuration, but with new metamodel, we only index the entity class which explicitly added

Hardy, I'm assigning this to you, but feel free to reassign, thanks

Fix Versions: 5.0.0
Project: Hibernate ORM
Priority: Major Major
Reporter: Strong Liu
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira