-->
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.  [ 2 posts ] 
Author Message
 Post subject: Questions about @Any Tag
PostPosted: Sat Jul 21, 2007 2:03 am 
Newbie

Joined: Sat Dec 30, 2006 3:07 pm
Posts: 16
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3.3.1 Annotations

Mapping documents:

@Any, @AnyMetaDef.java, @AnyMetaDefs.java

These annotations can be used to map a generic type to a database entity right?

The source code here for convenience:

http://anonsvn.jboss.org/repos/hibernat ... ToAny.java
http://anonsvn.jboss.org/repos/hibernat ... s/Any.java

Says

* This kind of mapping should be only marginal.

Is this slow? It would really help out my domain model to use this tag, but I am wondering what the negitive implications of this Annotations is?

What are the implications of heavy use of this tag?

Thanks

Kal


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 21, 2007 11:11 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Heavy use of this feature is not recommended. It forces Hibernate to do a subsequent select rather than a join.
It also show that your database design is somewhat flawed :)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.