google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Exception for indexed collection in embedded entity #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an entity that contains an embedded entity that contains a collection 
annotated with @Index
2. Attempt to save the entity

What is the expected output? What do you see instead?
Expecting successful save, getting exception for unsupported type for the 
collection type

What version of the product are you using? On what operating system?
5.0.2

Please provide any additional information below.
This is caused because the collection is stored as a value in the map in 
SaveContext.addIndex(), instead of each value being added, and results in 
attempt to save the field as a two-dimensional collection.

I created a patch that resolves this by adding the values correctly with 
putAll() instead of put() in case of Iterable type.

Original issue reported on code.google.com by guz...@gmail.com on 25 Apr 2014 at 2:37

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9b9747b1275c.

Original comment by lhori...@gmail.com on 29 Apr 2014 at 5:47