-->
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: <any> property mapping with annotations
PostPosted: Wed Dec 07, 2005 2:16 pm 
Newbie

Joined: Wed Dec 07, 2005 2:01 pm
Posts: 8
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate 3.1b3:

Can I create a mapping like the one explained in 6.1.22 <any> of the Hibernate docs?

http://www.hibernate.org/hib_docs/v3/re ... anymapping

I have a 'Notes' table that has optional data that may be tagged onto multiple tables.

Notes Table
{
ID = PK
TableID - PK of some other object in another table
TableName - TableName of other object
SortSequence - Sort order in OneToMany
....other stuff
}

I've been searching the forums for days and I can't find anything. I can work around the get() with HSQL, but I can't figure out an elegant way to get the TableID to save with the ID of the parent class in the same session. Any help would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 3:17 pm 
Newbie

Joined: Wed Dec 07, 2005 2:01 pm
Posts: 8
I am trying to use annotations if that isn't clear. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
any is not supported through annotations yet.

_________________
Emmanuel


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.