Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » EMF SOAP questions
EMF SOAP questions [message #640611] Mon, 22 November 2010 15:44 Go to next message
Markus Schindler is currently offline Markus Schindler
Messages: 30
Registered: July 2009
Member
Hello,

I'm a absolute emf beginner, and have a few question about emf.

Following example:

I hava a meta-model on client-side:
-Book {name->EString, author->Author)
-Author {name->EString}
So, the attribute author of the book, is a reference to the Author class.

I have a SOAP Api, with two methods.
getBooks -> List-of{Book (id, name, authorId)
getAuthors -> List-of{Author(id, name)

Question:
1. How can I "load" the books? (All examples I have seen, work with stored xmi files.)
2. How can I handle the reference between book and author? (because, the book object via soap, has only a authorId)
3. How can I do lazy-loading (I don't need the author objects, if nobody calls book.getAuthor())


Any hints are welcome!

Regards,
Markus
Re: EMF SOAP questions [message #640667 is a reply to message #640611] Mon, 22 November 2010 17:53 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26037
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020808060700000500080405
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Markus,

Best to use the EMF newsgroup (eclipse.tools.emf) for that. More
comments below.


Markus Schindler wrote:
> Hello,
>
> I'm a absolute emf beginner, and have a few question about emf.
>
> Following example:
>
> I hava a meta-model on client-side:
> -Book {name->EString, author->Author)
> -Author {name->EString}
> So, the attribute author of the book, is a reference to the Author class.
In EMF you'd call that a reference.
>
> I have a SOAP Api, with two methods.
> getBooks -> List-of{Book (id, name, authorId)
> getAuthors -> List-of{Author(id, name)
>
> Question:
> 1. How can I "load" the books? (All examples I have seen, work with
> stored xmi files.)
You need to read some of the introductory overview information.
> 2. How can I handle the reference between book and author? (because,
> the book object via soap, has only a authorId)
> 3. How can I do lazy-loading (I don't need the author objects, if
> nobody calls book.getAuthor())
Try reading this: Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>
>
>
> Any hints are welcome!
>
> Regards,
> Markus
>
>
>
>

--------------020808060700000500080405
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Markus,<br>
<br>
Best to use the EMF newsgroup
Previous Topic:serialize ecore references into container
Next Topic:Reading multiple XML models of different XSD's
Goto Forum:
  


Current Time: Mon Sep 15 04:23:34 GMT 2014

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

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