Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Defining mulitple persistency for EMF Model from one xsd
Defining mulitple persistency for EMF Model from one xsd [message #77867] Fri, 19 June 2009 04:13 Go to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

Hi,

I have defined my metamodel in a xsd file. The metamodel is something like
following:
Company contains 1..n Employees.
Each employee has 1..n Responsibility.

I created a EMF model based on this. I generated code from this.
Now, the editor which gets generated
- Is for files of type extensions
- Allows me to Add Employees and Add Responsibility to Employee

Now, the complete info is stored in one file of extensios .company.
I want to store the information in two files.
-> .company
-> .employee

Is it possible ? OR
Do i need to have two xsd, one for metamodel of company and one for
metamodel of employee ?

Regards,
Ashwani Kr Sharma
Re: Defining mulitple persistency for EMF Model from one xsd [message #77884 is a reply to message #77867] Fri, 19 June 2009 07:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Ashwani,

Please don't ask the same question in multiple newsgroups with different
posts. This is already answered in the EMF newsgroup.


Ashwani Kr Sharma wrote:
> Hi,
>
> I have defined my metamodel in a xsd file. The metamodel is something
> like following:
> Company contains 1..n Employees.
> Each employee has 1..n Responsibility.
>
> I created a EMF model based on this. I generated code from this.
> Now, the editor which gets generated - Is for files of type extensions
> - Allows me to Add Employees and Add Responsibility to Employee
>
> Now, the complete info is stored in one file of extensios .company.
> I want to store the information in two files.
> -> .company -> .employee
>
> Is it possible ? OR Do i need to have two xsd, one for metamodel of
> company and one for metamodel of employee ?
>
> Regards,
> Ashwani Kr Sharma
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Defining mulitple persistency for EMF Model from one xsd [message #604240 is a reply to message #77867] Fri, 19 June 2009 07:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Ashwani,

Please don't ask the same question in multiple newsgroups with different
posts. This is already answered in the EMF newsgroup.


Ashwani Kr Sharma wrote:
> Hi,
>
> I have defined my metamodel in a xsd file. The metamodel is something
> like following:
> Company contains 1..n Employees.
> Each employee has 1..n Responsibility.
>
> I created a EMF model based on this. I generated code from this.
> Now, the editor which gets generated - Is for files of type extensions
> - Allows me to Add Employees and Add Responsibility to Employee
>
> Now, the complete info is stored in one file of extensios .company.
> I want to store the information in two files.
> -> .company -> .employee
>
> Is it possible ? OR Do i need to have two xsd, one for metamodel of
> company and one for metamodel of employee ?
>
> Regards,
> Ashwani Kr Sharma
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Defining mulitple persistency for EMF Model from one xsd
Next Topic:UML to XSD
Goto Forum:
  


Current Time: Thu Apr 25 04:50:05 GMT 2024

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

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

Back to the top