Skip to main content



      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 14:43
Eclipse UserFriend
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?

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


Current Time: Mon Jul 07 23:00:46 EDT 2025

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

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

Back to the top