-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibenrate Migration from 4.3.x to Hibernate 5.x
PostPosted: Wed Oct 07, 2015 1:32 am 
Newbie

Joined: Thu Oct 01, 2015 8:10 am
Posts: 4
SequenceGenerator,SequenceHiLoGenerator classes are deprecated
configure(Type type, Properties params, Dialect d) changed to configure(Type type, Properties params, ServiceRegistery s)

What are the replacement classes/ strategy for the above

We have our own customized class which extends the above classes.

thanks


Top
 Profile  
 
 Post subject: Re: Hibenrate Migration from 4.3.x to Hibernate 5.x
PostPosted: Wed Oct 07, 2015 6:06 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Hi,
I think you should use
Code:
org.hibernate.id.enhanced.SequenceStyleGenerator
instead.

Davide


Top
 Profile  
 
 Post subject: Re: Hibenrate Migration from 4.3.x to Hibernate 5.x
PostPosted: Mon Nov 02, 2015 7:04 am 
Newbie

Joined: Thu Oct 01, 2015 8:10 am
Posts: 4
Thanks Davide
Can you please help me with this query too

https://forum.hibernate.org/viewtopic.php?f=1&t=1041907

i was trying to upgrade Hibernate from 4.3.x t o5.x
In Hibernate 4.3.x, there is a method getClassMapping(className) of class org.hibernate.cfg.Configuration.
But in Hibernate 5.x, this getClassMapping(className) method is removed from Configuration class.

What will be the code substitution in Hibernate-5?


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