[jboss-user] [EJB 3.0] - jboss6 M4 Hibernate @Any annotation

Pieter Martin do-not-reply at jboss.com
Fri Oct 1 13:36:41 EDT 2010


Pieter Martin [http://community.jboss.org/people/pieter.martin] created the discussion

"jboss6 M4 Hibernate @Any annotation"

To view the discussion, visit: http://community.jboss.org/message/564601#564601

--------------------------------------------------------------
Hi,

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


19:33:31,552 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#primary state=Create: java.lang.UnsupportedOperationException: any not supported yet
    at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:452) [:3.5.2-Final]
    at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:93) [:3.5.2-Final]
    at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:183) [:3.5.2-Final]
    at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:66) [:3.5.2-Final]
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:83) [:3.5.2-Final]
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:887) [:3.5.2-Final]
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [:3.5.2-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.20100721-M4]
    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
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/564601#564601]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101001/2cf99ac0/attachment.html 


More information about the jboss-user mailing list