-->
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: @TypeDef creating large number of objects than required.
PostPosted: Wed Dec 11, 2013 7:10 pm 
Newbie

Joined: Sun Jul 28, 2013 9:47 pm
Posts: 2
Hi
I already reported this problem as part of a performance testing in thsi forum under this subject Hibernate @TypeDef creating 1000 typeclass instances.

I have one entity annotated with @TypeDef to do a trimming of String value read from the database. Currenlty I annotated only one field with @Type(type = "trimmedString"). I put a counter in TrimmedString class constructor.
This is the last output -- no of times TrimmedString created :: 14.
There is something worng with the object creation handling by Hibernate, this will cause a major perofmance issue in large application.
Please someone from Hibernate team look into this problem and fix. we may need a singleton object here.


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.