-->
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: Mapping concrete collections
PostPosted: Mon Nov 07, 2005 3:27 pm 
Newbie

Joined: Mon Nov 07, 2005 3:07 pm
Posts: 3
In this highly edifying post:
http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/03/11/
Gavin refutes numerous untrue statements about Hibernate, but, in passing happens to mention that "No Hibernate user has ever asked for support for concrete collection classes".

Well, consider this your first request! I have been looking through the updated versions of the proxy and property packages for Hibernate v3 which Gaven has mentioned are the extension point which enable this, but I'm afraid it isn't sufficiently obvious with the documentation there to figure out how to get this done. Could somebody supply a simple example of this technique? This could either involve some CGLib trickery, or else the manual creation of a new interface for the proxy with the relevant bit of "glue".

I don't want to get into the discussion here about whether this requirement is legitimate or not (e.g. "you should program to collection interfaces and not implementations") as I fear this would generate rather more heat than light.

Cheers,
Antranig.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 07, 2005 3:47 pm 
Newbie

Joined: Mon Nov 07, 2005 3:07 pm
Posts: 3
Oops...

After re-reading Gavin's post again I found I had been misdirecting myself to the wrong packages based on other readings. After a quick browse of the source it looks like org.hibernate.collection.PersistentList & co is precisely what I'm looking for - please ignore post :P

Antranig.


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.