EMF SOAP questions [message #640611] |
Mon, 22 November 2010 15:44 |
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 |
Ed Merks Messages: 33141 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03090 seconds