-->
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: Pluggable entity modes?
PostPosted: Thu Jun 22, 2006 10:26 am 
Newbie

Joined: Wed Jan 07, 2004 1:56 pm
Posts: 14
Is it the intention to be able to have pluggable entity-modes with hibernate - ie in addition to dynamic-map, dom4j and pojo?

We have a requirement to persist/load dynamic map-like objects (similar to SDO DataObject's) - and while we can use the dynamic-map entity mode, I am conscious of the overhead of copying between maps & our DataObjects...

Thanks.
-Nick


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 12:34 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
I'm not aware of that ability existing at the moment. However, if dynamic-map is close to what you want, you could use that, but write your own Tuplizers. There's a brief intro to them in the ref docs, section 4.5, there's a couple of articles in the wiki area, and of course, you can read the DynamicMapEntityTuplizer and DynamicMapComponentTuplizer source code.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 9:00 am 
Newbie

Joined: Wed Jan 07, 2004 1:56 pm
Posts: 14
Ultimately, from what I understand from what I have looked at, I dont think writing a tupelizer is enough.
There are a number of places I found in the code which is aware of the different tupelizer types (or at least what they work with: Map, Pojo, etc). SessionImpl, for instance.

It seems the that the best I could do is return a different Map type or perhaps populate the map differently. That might be close to what I want... I will have to see.

I was hoping to get an idea of what the future direction might be here from one of the developers...

-Nick


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.