Hi, good day!
I just started using MyEclipse.
I’m using a bundle with ME 5.1+Eclipse 3.2.1.
I imported my old project and added some hibernate capabilities to it.
The idea behind it was to be able to config the HibernateConsole.
Well since i was using JbossIDE i thought it ‘d be pretty much like it.
But it is not. It cannot configure a sessionFactory from a xml configuration file declaring some classes containing ANNOTATIONS.
So, my workaround was to create the ME provided factory (wizard) and change the line where Configuration instantiation happens.
I created the session factory through the ME wizard and edited the .myhibernateETC writing the FQCN of the sessionFactory class.
ok. It seams the ME CAN’T PROCESS AN EDITION TO IT’S INITIAL CONFIGURATION IN HIBERNATE CONSOLE ?!!?
————————————————————————————-
How do I reset the initial configuration or remove the HibernateCapabilities to try configuring again? How can I alter the initial configuration to make it process annotated classes?
————————————————————————————-
The error it points out at the creation time is: “An AnnotationConfiguration instance is required to use <class=”my annotated class” / >”
So, it is not recognizing my alterations to the initial configuration.
In the HibernateConsoleFactory class the only line changed was this one:
private static Configuration configuration = new AnnotationConfiguration();
In the .myhibernateXYZ i changed this line: sessionFactoryName=z.x.xa.dao.factory.HibernateConsoleFactory
Tnx in advance,
:Luiz.