-->
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.  [ 4 posts ] 
Author Message
 Post subject: Serializing the Configuration in 2.x
PostPosted: Sat Jun 11, 2005 4:16 am 
Newbie

Joined: Tue Aug 10, 2004 10:08 am
Posts: 6
I am looking into Serializing the Hibernate Configuration in 2.x and came across that fact that it had been done before in the 2.2 branch but I its not there now. Looking at the CVS history it looks like the changes got lost with a merge "merging of the tip of v21branch onto HEAD".

Is there a reason why this is not longer possible?

I am using hibernate in a desktop application and have been trying to get our start-up time down, as you can appreciate this is a lot more critical for a desktop application over a server one. The loading of the hibernate configuration is about 10% of the boot time with another 15% the creation of the session factory.

In case there are lots of suggestions to move to 3.x, I tried that a few months ago and it was magnitudes slower, and I had issues with porting our code that changes the mapping configuration at run time.

Many Thanks

Jasper


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 11, 2005 3:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
1. the serialization of configuration is indeed possible (our unit tests does it)

2. "magnitude slower" hints to me you did not read the migration guide and saw the instruction that says use the version 3 of the DTD instead of version 2.

if you still think #1 is false, then you just show what you mean by "not being possible"

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Dosn't seem serializable in current Hibernate2 CVS module
PostPosted: Tue Jun 14, 2005 11:18 am 
Newbie

Joined: Tue Aug 10, 2004 10:08 am
Posts: 6
I have been looking though the source from current CVS HEAD.

Configuration.java Line 79
Code:
public class Configuration {


it clearly does not implement Serializable, if I look at the same line in branch "v22branch" :
Code:
public class Configuration implements Serializable {


I have also looked through the JUnit tests, there only seems to be two tests in HEAD using ObjectInputStream: FumTest.java and MasterDetailTest.java. Niether of those is dealing with serializing the Configuration. I have found the test you were mentioning ConfigurationPerformanceTest.java in the "v22branch" but this is not available in HEAD.

Thanks

Jasper[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 11:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry didnt see the 2 ... serialization is only done in version 3.

2.2 is what became 3

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.