-->
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: Configuration in version 5.2.10.Final - missing methods
PostPosted: Tue Apr 18, 2017 8:57 am 
Newbie

Joined: Tue Apr 18, 2017 8:49 am
Posts: 2
Hi,
Currently I’m using hibernate in version 4.3.11.Final and I would like to migrate to 5.2.10.Final. I see that class org.hibernate.cfg.Configuration in version 5.2.10.Final does not have methods:

Code:
configuration.getCollectionMappings()
configuration.getTableMappings()
configuration.getClassMappings()


Do you know where I can find these methods in version 5.2.10.Final ? All these methods are available in version 4.3.11.Final

Regards,
Czeslaw


Top
 Profile  
 
 Post subject: Re: Configuration in version 5.2.10.Final - missing methods
PostPosted: Tue Apr 18, 2017 9:21 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
The bootstrap has changed considerably between 4.x and 5.x. The Configuration class no longer represents the proper way of bootstrapping Hibernate.

For more details about the new Bootstrap mechanism, check out the Hibernate 5.x User Guide.


Top
 Profile  
 
 Post subject: Re: Configuration in version 5.2.10.Final - missing methods
PostPosted: Wed Apr 19, 2017 1:24 pm 
Newbie

Joined: Tue Apr 18, 2017 8:49 am
Posts: 2
Hi,
Sorry but I don't see on given page how can I replace:
Configuration.getCollectionMappings()
Configuration.getTableMappings()
Configuration.getClassMappings()

Can you show me some example ?

Another issue I have with migration envars 4.3.11.Final to 5.2.10.Final.
In 4.x was org.hibernate.envers.configuration.spi.AuditConfiguration; In version 5.2.10 I see that exists org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration. Do you know how to obtain or create AuditEntitiesConfiguration ?


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.