2 Replies Latest reply on Oct 3, 2010 12:45 AM by Pieter Martin

    jboss6 M5 Hibernate @Any annotation

    Pieter Martin Novice

      Hi,

       

      I am trying to deploy a entity with hibernate's @Any annotation and am getting the following exception

       


      20:33:14,667 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=cm.war#primary state=Create: java.lang.UnsupportedOperationException: any not supported yet
          at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:452) [:3.5.5-Final]
          at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:93) [:3.5.5-Final]
          at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:183) [:3.5.5-Final]
          at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:66) [:3.5.5-Final]
          at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [:3.5.5-Final]
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:891) [:3.5.5-Final]
          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) [:3.5.5-Final]
          at org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:47) [:1.0.2-alpha-1]
          at org.jboss.as.jpa.scanner.HackCEMFBuilder.build(HackCEMFBuilder.java:49) [:6.0.0.20100911-M5]
          at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275) [:1.0.2-alpha-1]

       

       

      What is required to make @Any work.

       

      The hibernate-annotations.jar in jboss/client directory does contain the @Any annotation.

       

      Thanks

      Pieter