[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] Re: Design question
|
- From: bdberry@xxxxxxxxxx (Brian Berry)
- Date: Tue, 2 Sep 2003 14:25:14 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
I have a package (pkg A) which is used to represent my presentation layer
data, ie - simple data structures containing get/set attributes required
to paint the UI for my application. I have another package (pkg B) of
utility classes that read from a database certain properties in order to
construct the objects of the type mentioned in pkg A. Currently I have
both pkg A and pkg B generated as an EMF model. Should I not make an EMF
model out of pkg B? If I should proceed with implementing pkg B as a
Resource as mentioned in the last reply to my original post, is there a
tutorial or some documentation available on doing that?
Frank Budinsky wrote:
> Brian,
> Without more specifics, its hard to answer this question. Generally,
> persistence (data access) would be implemented in a Resource, which is not
> modeled in EMF.
> Frank.
> Brian Berry wrote:
> > I have some packages in my application that are to be used for database
> > access of various objects. Is it recommended to keep the EMF portion of
> > my design limited to the simpler data structures as they are be auto
> > generated or will I benefit from implementing all of my packages as an EMF
> > model and then writing the database access code in the impl package of
> > generated classes?