I see in the Library example that a Map is used as the return type in  
a repository method, but does fornax support storing a map as part of  
a collection?

i.e. something like this:

Entity foo {
        Map<String, String> properties;
}

I understand that something like this this:
        Map<String, Object> properties
might not be possible since Object might not be serializable / might  
not be mapped.. etc. - but

Something like this:

        Map<@Item, @User> itemsAndUsers

should be mappable as a ternary association with a join table like this:

<map name="itemsAndUser" table="CATEGORY_ITEM">
     <key column="CATEGORY_ID"/>
     <map-key-many-to-many column="ITEM_ID" class="Item"/>
     <many-to-many column="ADDED_BY_USER_ID" class="User"/>
</map>

... now - I just copied that itemsAndUsers example from the Java  
Persistence With Hibernate book ( page 347 of the pdf copy of it I  
have ) - but you get the idea.

In any case - I'm most interested in just a basic mapping for now -  
because I've got a use case where I need to capture and persist a map  
of properties...

Ryan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to