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: Relation Mapping only for EntityMode.MAP
PostPosted: Tue Jan 13, 2009 12:13 pm 
Newbie

Joined: Tue Jan 13, 2009 11:49 am
Posts: 11
Hi,

I'm looking for a way to declare a one-to-many relation for an entity without storing the value (the Collection) in the entity. no member, no getter, no setter. I have not found a way to do so without getting an Exception like "org.hibernate.PropertyNotFoundException: Could not find a getter for (...)"

This may sound like not really useful, but I need to implement some persistence aspects that need to be added to all my entities without the "normal" developer to see them. That's why I don't want the necessity to add this relation to my classes.

But in the background, triggered by aspects, I want to be able to be able to use this relation with a session in EntityMode.MAP mode and have the relation in my map as a property. And I of course want this relation to be eagerly loaded.

I know there is a lot of "I want" in this text, I'll work on it :)

Dirk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2009 4:43 am 
Newbie

Joined: Tue Jan 13, 2009 11:49 am
Posts: 11
putting my question on hold. I think I found a way by declaring a custom PropertyAccessor.

Dirk


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.