Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » I need a special help for a problem on query results and treeviewer!
I need a special help for a problem on query results and treeviewer! [message #704628] Thu, 28 July 2011 22:05
erpalma2003 is currently offline erpalma2003Friend
Messages: 12
Registered: July 2011
Junior Member
Hi, I'm quite new to EMF world but it sounds (and it is) amazing. I'm working on the first project for a customer using EMF. I'm stuck with this problem:

I'm using EMF with Teneo/Hibernate for persisting my model into a database. I can show my model quite well using the generated (with some minor changes) content provider on a treeviewer. So far so good. I need to find some objects in the model using (is it the best way?) HQL query. For example I need to find aCar "2" in this model:

- Car Manufacturer "1"
- Car Seller "1"
- aCar "1"
- aCar "2"
- Car Seller "2"
- aCar "A"

Using HQL it is quite simple to find the car. The problem is that I need to show (on the treeviewer) the entire structure of the parents of the car giving as input the car itself. Ex:

- Car Manufacturer "1"
- Car Seller "1"
- aCar "2"

Is it possible?

Sorry for my poor English and really thank you! Francesco.

[Updated on: Thu, 11 August 2011 17:05]

Report message to a moderator

Previous Topic:Teneo and EclipseLink 2.3.0
Next Topic:Schema location attribute in serialized model causes validation problems
Goto Forum:

Current Time: Sun Jun 24 11:23:30 GMT 2018

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

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

Back to the top