-->
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: Status of the dynamic-map feature
PostPosted: Sun Aug 15, 2010 12:33 pm 
Newbie

Joined: Sun Aug 15, 2010 12:08 pm
Posts: 1
I would like to put a good word in for the dynamic-map entity mode. From the amount of content available on the web discussing this feature it seems to me that few people use it -- and it's still experimental. Dynamic maps have a very important role when using Hibernate from dynamic JVM languages. I work for a company that uses Clojure as its primary language in enterprise-class software solutions. We have come to rely extensively on Hibernate for a number of its great features, database portability being for us perhaps the most important.

It is a real pleasure to combine dynamic map entities with clojure maps. We can construct a complex, nested data structure using the Clojure map literal and save it to db, all in a single expression. Without dynamic maps, we would have to burden our projects with precompiled Java code and maintain that code as our data model evolves. This way, we only change the Hibernate mappings, which for us play the role of database schema definitions with no redundancies in other models.

So far we have had no performance issues with dynamic map entity mode, quite to the contrary. We have successfully used them even for batch inserts that require one query per record to determine whether it should be inserted. Even on my development laptop I get over a thousand records processed per second.

I hope this feature lives on and becomes a standard part of Hibernate. As the JVM world turns increasingly towards dynamic languages, it may yet gain some serious traction.


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.