Hi All,

I hope this is not a very stupid question, but something I just haven't
been able to figure out yet. I've chosen to use the annotation based model,
as it helps me to keep the meta model and the java application nicely
consistent.

In my model I would like to have something similar to this:

@EdmEntitySet(name = "BlogPost")
public class BlogPost {

@EdmKey
@EdmProperty
private String id;
@EdmProperty
private String title;
@EdmProperty
private String body;
@EdmProperty
private List<String> tags;
....

It is especially with regards to the "tags" property that I wonder how to
solve this. I would prefer not to point to another entity with predefined
tags, but to have a list of arbitrary tags inside the blog post instead.

It seems it can't be done with the @EdmProprety annotation, as it only
supports basic properties such as string etc, and no collection types. Is
there a way this can be done using annotations?

Thanks!

- Jan

Reply via email to