-->
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: Upgrading to Hibernate 3 // Missing Classes
PostPosted: Wed Sep 01, 2010 2:04 am 
Newbie

Joined: Wed Aug 11, 2010 12:28 pm
Posts: 4
Hey!
I'm upgrading to HB3 and cannot find the correspoding classes of H2:

net.sf.hiberate.Databinder
net.sf.hiberate.persister.ClassPersister
net.sf.hiberate.type.PersistentCollectionType


I'd be very pleased if you could help me to find the classes having same funcionality in Hibernate 3 (or v3.5.5 in particular).

Thank you.


Top
 Profile  
 
 Post subject: Re: Upgrading to Hibernate 3 // Missing Classes
PostPosted: Wed Sep 01, 2010 2:45 am 
Newbie

Joined: Wed Aug 25, 2010 9:14 pm
Posts: 5
Hi - are you experiencing compilation issues or simply curious as to where the functionality exists in H3?
If it's compilation issues you have then it is probably because you've still go some legacy resources on your classpath.
If so, which classes are complaining about not finding the H2 classes you've listed? These classes probably belong to libs with H2 dependencies which also need updating. e.g. spring framework. Hope that helps.


Top
 Profile  
 
 Post subject: Re: Upgrading to Hibernate 3 // Missing Classes
PostPosted: Wed Sep 01, 2010 8:16 am 
Newbie

Joined: Wed Aug 11, 2010 12:28 pm
Posts: 4
Thank you for you response...
I have been experiencing compilation issues. I could not find Databinder.class, ClassPersister.class and PersistentCollectionType.class files under the hibernate3.jar file.

So;

For the operations of import and export I have been using ReverseXMLDatabinder.java, which is coded by Ara Abrahamian, on Sept 9, 2003.

I mostly get compilation errors for the ReverseXMLDataBinder class (and I think you may have already noticed that Hibernate 3 does not include an equivalent file to net.sf.hibernate.Databinder).

For ex; in the ReverseXMLDatabinder class

Element element = (Element)iter.next();
Class clazz = getClassForElement(element, "class", "package");
ClassPersister persister = getPersister(clazz);
Object obj = null;

the underlined parts give error.

There are about errors similar to this in the same class example...

Thank you for your care...


Top
 Profile  
 
 Post subject: Re: Upgrading to Hibernate 3 // Missing Classes
PostPosted: Tue Sep 07, 2010 1:13 am 
Newbie

Joined: Wed Aug 25, 2010 9:14 pm
Posts: 5
Hi
From this thread:
https://forums.hibernate.org/viewtopic.php?f=9&t=940193&start=0&sid=1e89fbf703b1748e2d609836272ee8f9
it looks like XMLDatabinder/ReverseXMLDatabinder no longer exists in H3. You can't have H2 and H3 resources coexisting on your classpath.
If you are not getting a compile error to resolve 'ReverseXMLDataBinder' itself, you must have legacy hibernate resources on your path.
If you require the XMLDatabinder/ReverseXMLDatabinder then it looks like you may need to revert to H2. Hope this helps.


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.