Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » The Hibernate resource query does not work in the latest TENEO build
The Hibernate resource query does not work in the latest TENEO build [message #616237] Sun, 13 April 2008 01:03
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 109
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
Previous Topic:Search for all references to a specific instance
Next Topic:[Net4j]
Goto Forum:
  


Current Time: Mon Mar 30 14:13:45 GMT 2020

Powered by FUDForum. Page generated in 0.01571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top