-->
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: Why is the TwoPhaseLoad of EntityMode.Map faster than POJO ?
PostPosted: Wed Jan 06, 2010 2:08 pm 
Beginner
Beginner

Joined: Fri Dec 04, 2009 9:37 am
Posts: 34
Hello,

1.) EntityMode.Map vs Pojo
I am new to hibernate, doing this fun since 3 Month and learning a lot. Currently iam experimenting on loading and performance issues.
A small test with hibernate debugging shows that the TwoPhaseLoad of EntityMode.POJO does much more association checks that EntityMode.MAP.

- first I thought it must be the more efficient impl of HashSet in the jvm, but here are less association checks done....

2.) Is there an option to marshall these Hashsets with a Hibernate API utillity or are external API's like xstream the sollution ?

Best regards, Andre from Berlin

:)


Top
 Profile  
 
 Post subject: Re: Why is the TwoPhaseLoad of EntityMode.Map faster than POJO ?
PostPosted: Thu Jan 07, 2010 7:11 am 
Beginner
Beginner

Joined: Fri Dec 04, 2009 9:37 am
Posts: 34
I think ist given by List. Adding to a list results in a bag that must be associated....

Does anybody know how to convert a nested HashMap Structure (EntityMode.Map) to a Pojo ????????
This is my current overall research, because then all my working progress would be targeted...

Hilfe


-------------------
Update: solved with JPA & subselect


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.