The Hibernate resource query does not work in the latest TENEO build [message #616237] |
Sun, 13 April 2008 01:03 |
Yigal Spinner Messages: 127 Registered: July 2009 |
Senior Member |
|
|
I was using up till now the TENEO build from September 2007.
I wanted to take advantage of the latest fixes and loaded the TENEO
I200804102324 build.
With this build my queries do not execute any more.
Here is my code:
Resource.Factory.Registry.INSTANCE.getProtocolToFactoryMap() .put(
"hibernate", new HibernateResourceFactory() {
@Override
public Resource createResource(URI uri) {
return new HibernateResource(uri);
}
});
String queryStr = "hibernate://?dsname=my_database?query1=from part"
URI queryURI = URI.createURI(queryStr); Resource r1 =
resourceSet.createResource (queryURI);
This used to work fine and return all the entries in the table "part".
Withe the new version of TENEO, I get an empty list. I debug trough the
code but code not find where it fails. It just create a new
HibernateResource but has not data.
Any help? What is the difference?
I also loaded the latest EMF M200803121150 and no difference.
Do I need to regenerate the classes from the eCore or can I use the code
that I have (EMF 2.3.1)
Thanks
Yigal
|
|
|
Powered by
FUDForum. Page generated in 0.01443 seconds