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: A bit unorthodox mapping problem
PostPosted: Sat Aug 09, 2008 5:25 am 
Newbie

Joined: Fri Sep 09, 2005 2:00 am
Posts: 9
Hi,

I have a problem with not so straight mapping: i have DB model with ENTITY and ATTRIBUTE tables where naturally there's one-to-many relationship between entity and attribute.

If I now have a concrete class like

SomeClass
{
X
Y
}

where X and Y are just class properties,

can it be mapped to this kind of data model? Of course, I can always keep the collection of attributes inside SomeClass and expose X and Y as lookups but I would also like to be able to use them inside queries so that I can ask nhibernate "from SomeClass c where c.X = 'abc'"

Is that somehow, now matter the technical level involved (except rewriting nhibernate), possible with current latest API?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 12, 2008 7:36 pm 
Newbie

Joined: Fri Sep 09, 2005 2:00 am
Posts: 9
I wonder if it's possible anybody hasn't stuble upon similar problem or is it more probable there isn't a real solution here?


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.