-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: jboss6 M5 Hibernate @Any annotation
PostPosted: Sun Oct 03, 2010 12:37 am 
Newbie

Joined: Mon Jul 05, 2010 11:56 am
Posts: 3
Hi,

I am trying to deploy a entity on jboss-6.0.0.20100911-M5 with hibernate's @Any annotation and am getting the following exception

Code:
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/common/lib directory does contain the @Any annotation.

Thanks
Pieter


Top
 Profile  
 
 Post subject: Re: jboss6 M5 Hibernate @Any annotation
PostPosted: Tue Nov 23, 2010 2:44 pm 
Newbie

Joined: Thu Aug 24, 2006 4:18 pm
Posts: 3
Hi there,
I'm facing exactly the same issue. Although the documentation of hibernate 3.6.0-final mentions @Any in the same way older hibernate versions such as 3.2.2.GA mentions, the stacktrace is the same as yours pietermartin.

did you find any ideas/workarounds?
cheers!


Top
 Profile  
 
 Post subject: Re: jboss6 M5 Hibernate @Any annotation
PostPosted: Tue Nov 23, 2010 3:47 pm 
Newbie

Joined: Mon Jul 05, 2010 11:56 am
Posts: 3
Nope unfortunately not. For now it is a blocker, keeping us on Seam 2 and jboss 5.

Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.