MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mork
Post subject: Why does MyEclipse Deprecated code?  PostPosted: Oct 12, 2012 - 12:54 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 604

In MyEclipse for Spring (10.6), I added Hibernate 4 capabilities and chose to create the SessionFactory.

Yet, I already had a "Java Problem", since MyEclipse generated code that was deprecated.

sessionFactory = configuration.buildSessionFactory();

-----

The "Quick Fix" doesn't add any help other than to, gulp, "ignore" the problem.

Why isn't MyEcipse generating current, non-deprecated code, and what should I do about this problem? If I have to refactor the generated code, why am I generating it in the first place?

Please respond as soon as possible.

Thanks,

-- n
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 15, 2012 - 11:51 AM



Joined: Nov 11, 2010
Posts: 2154

Mork,

Sorry that you are seeing this issue. This is a known issue and the fix will be part of our upcoming release 10.7 which will be released in two weeks.

Till the time 10.7 is out, please replace the deprecated code with :

sessionFactory = configuration.buildSessionFactory(serviceRegistry);

Take a look at the attached HibernateSessionFactory.java for an idea about what code will be generated in 10.7.

Let us know if you see any issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Post subject:   PostPosted: Oct 15, 2012 - 12:14 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 604

support-swapna wrote:
Mork,

Sorry that you are seeing this issue. This is a known issue and the fix will be part of our upcoming release 10.7 which will be released in two weeks.

Till the time 10.7 is out, please replace the deprecated code with :

sessionFactory = configuration.buildSessionFactory(serviceRegistry);

Take a look at the attached HibernateSessionFactory.java for an idea about what code will be generated in 10.7.

Let us know if you see any issues.


Thanks very much for your kind reply!

Appreciate your help.

- m
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Nov 26, 2012 - 07:00 AM



Joined: Mar 09, 2011
Posts: 715

Mork,

This issue has now been fixed in release 10.7. You can use the Configuration Center to update base MyEclipse features to 10.7. Unfortunately, the MyEclipse for Spring stand-alone installer won't be available from our download page for a few weeks but the update from the Configuration Center should provide the fix.

Thanks for reporting the issue.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits