Java Reference
In-Depth Information
Figure 4-41
Requirements diagram partition
At the moment, we're persisting a process model instance within our require-
ments model instance, contained within the associated Requirement instance.
We could set the requirements.genmodel to use Containment Proxies ,
which would let us specify a new resource (file) for persisting new Process
instances. This would also let us store these models independently and even ini-
tialize a new standalone scenario diagram for each process. This doesn't work
out of the box, but you can implement it using custom code.
4.5.7 Database Persistence
As mentioned in the overview of Modeling project components, we can persist
models to other than a local file. Two components within the EMFT project
allow for database persistence of EMF models: Teneo and Connected Data
Objects (CDO). In this section, we use Teneo to persist our scenario diagram and
domain model instance to a Derby database using Hibernate. The process for
persisting both EMF models and GMF diagrams is presented in tutorials linked
from the Teneo Web site, with the latter inspiring the content here.
Search WWH ::




Custom Search