-->
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: how could i create a custom relationship between two tables?
PostPosted: Tue Jan 20, 2009 2:15 am 
Newbie

Joined: Sat Aug 30, 2008 5:15 am
Posts: 3
Hello,

I'm using hibernate to create a model from an existing database.
I have a problem with one of the relationships: it's based on a chmod-like sum of identifiers.


for example, the column containing the related identifiers could contain 15,
which would have to be interpreted as 1 + 2 + 4 + 8 where all theses are the real IDs i have to look for.

(i hope what i just wrote makes sense to you ^^)

So, is there a way to short override hibernate classic strategy and use my own algorithm?


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.