-->
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: Bag with key connected to an <any> property?
PostPosted: Fri Dec 30, 2005 2:04 pm 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: NHibernate 1.0.1

Is there a way to map the key of a bag so that it refers to an property that has been mapped using <any>?

I want to have a Document class that can have an Owner property (mapped using <any>) which will accept any type of entity. I then want to have a User class with a collection of Document objects that have the User entity as the Owner.

Is this even possible? I've been digging at the documentation but it's not particularly clear on the <any> side of things when trying to map collections to them.

Help?

Symon.


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.