-1

School---->students

Like in the above model, Ecore lets me create more than one students in an instance of school. How do i create more than one objects of schools in the same instance?

  • In UML object == instance. So you are in fact asking how to make multiple schools in a single school. That doesn't make much sense to me. – Geert Bellekens Mar 16 '16 at 09:23

1 Answers1

2

I think the question how you worded it, doesn't make that much sense. But I think the solution you're looking for is just a way of grouping multiple schools together.

If that is the case, I would suggest adding another object called something like SchoolModel which has a composition of the object School. That way if you create one Schoolmodel, you have the freedom of having multiple Schoolobjects with multiple Studentsobjects, which are all "in the same instance" as you put it.

J. Schneider
  • 932
  • 1
  • 9
  • 19