-->
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.  [ 1 post ] 
Author Message
 Post subject: JPA 2 MetaModel: "collection of any not supported yet"
PostPosted: Mon Apr 12, 2010 4:30 pm 
Newbie

Joined: Wed Oct 19, 2005 10:06 am
Posts: 3
I noticed that Hibernate does not yet support the JPA 2 metamodel with "collection of any" mappings (i.e. a field mapped with @ManyToAny)
Code:
if ( elementType.isAnyType() ) {
    throw new UnsupportedOperationException( "collection of any not supported yet" );
}


I'd like to use the JPA 2 typesafe query API for my queries, but am OK with dropping down to the Hibernate API for queries using these particular types of associations. Is it possible to configure Hibernate to fit this desired usage? In other words, is it possible to get Hibernate to delay the throwing of this exception until someone attempts to actually use this metamodel element in a JPA 2 query?

Thanks!


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

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.