Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Search for all references to a specific instance
Search for all references to a specific instance [message #616078] Fri, 04 April 2008 18:43
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 122
Registered: July 2009
Senior Member
I'm using TENEO and hibernate on a very large model and complex
relationships (references).
I want to create a class that gives me all the parent instances that
reference one specific child instance.
For example:
Let assume I have an eCore model that represent a car. The engine (one
class) as a reference (association) to screw (common class) that is used
in the engine. The same for the transmission, AC and etc. That means
in the model the class instance "screw1" is referenced by many other
instances of the other classes.
If I have an instance of "screw1", I want to find out which instance
references this "screw1" (for example write a report if the screw
changes which component gets impacted - engine transmission and etc.).

Since my database is large, I disabled the Hibernate option to load all
top classes when a new resource is created.
I used the utility EcoreUtil.UsageCrossReference.find(<screw1>,
resourceSet), but it does not return any information.

How can I search the entire database to find all the references to a
single instance?

Previous Topic:Column name for attribute override
Next Topic:Workflow Engine ???
Goto Forum:

Current Time: Thu Aug 18 16:04:25 GMT 2022

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

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

Back to the top