Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Can Validation handle inter-model constraints?
Can Validation handle inter-model constraints? [message #596086] Thu, 23 November 2006 14:27
Eclipse UserFriend
Originally posted by: rasmusmodsat.hotmail.com

Hi,

can the Validation framework handle constraints that span different EMF
models? So far, I've only seen examples of constraints on a single model.

My concrete problem is that I have two models a.ecore and b.ecore where the
following constraint should hold: forall instances of class A in a.ecore
there should be a corresponding instance of class B in b.ecore with the same
attribute values. The way I'm solving it at the moment is by writing some
custom java code.

I would prefer to write a constraint in an OCL-like manner. This seems to be
more concise and maintainable.

Idea: perhaps I could specify an extent which spanned two models in the
Query API's setExtentMap(..) method?

If anyone have ideas, references, links or anything else, I would be very
interested. Open source solutions, code snippets or even academic papers ;)

-- HW
Previous Topic:Teneo: HibernateResource is not smart enough
Next Topic:Strange DuplicateMappingException with Teneo
Goto Forum:
  


Current Time: Wed Apr 24 15:59:55 GMT 2024

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

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

Back to the top