Helo Guys.
I'm migrating an app from Hibernate 3.6.7 to Hibernate 4.0.0.CR5, and I'm finding some problems.
I'm having the following problem.
Code:
Caused by: org.hibernate.cfg.NotYetImplementedException: Embedded ids must still be implemented.
at org.hibernate.metamodel.source.annotations.entity.ConfiguredClass.createMappedAttribute(ConfiguredClass.java:472) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.annotations.entity.ConfiguredClass.collectAttributes(ConfiguredClass.java:283) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.annotations.entity.ConfiguredClass.<init>(ConfiguredClass.java:160) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.annotations.entity.EntityClass.<init>(EntityClass.java:127) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.annotations.EntityHierarchyBuilder.createEntityHierarchies(EntityHierarchyBuilder.java:105) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.processMappingMetadata(AnnotationMetadataSourceProcessorImpl.java:130) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.internal.MetadataImpl.bindMappingMetadata(MetadataImpl.java:195) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.internal.MetadataImpl.<init>(MetadataImpl.java:165) [hibernate-core-4.0.0.CR5.jar:]
at org.hibernate.metamodel.source.internal.MetadataBuilderImpl.buildMetadata(MetadataBuilderImpl.java:83) [hibernate-core-4.0.0.CR5.jar:]
at br.com.optimuslabs.infra.persistence.MultiSchemaSessionFactory.getMetadata(MultiSchemaSessionFactory.java:137) [optimus-java-common-1.0-SNAPSHOT.jar:]
at br.com.optimuslabs.infra.persistence.MultiSchemaSessionFactory.createSessionFactory(MultiSchemaSessionFactory.java:93) [optimus-java-common-1.0-SNAPSHOT.jar:]
at br.com.optimuslabs.infra.persistence.MultiSchemaSessionFactory.createGlobalSessionFactory(MultiSchemaSessionFactory.java:80) [optimus-java-common-1.0-SNAPSHOT.jar:]
at br.com.optimuslabs.infra.persistence.MultiSchemaSessionFactory.create(MultiSchemaSessionFactory.java:50) [optimus-java-common-1.0-SNAPSHOT.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340) [spring-beans-3.0.5.RELEASE.jar:]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293) [spring-beans-3.0.5.RELEASE.jar:]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130) [spring-beans-3.0.5.RELEASE.jar:]
... 22 more
I could not understand what exactly this error refers.
Anyone have any ideas?
Thanks.