google-code-export / objectify-appengine

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

@Embedded List of primitive type silently fails #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an entity with a field @Embedded List<String> myList.
2. Put some data into it, store using objectify
3. Retrieve, observe that the strings are empty

What is the expected output? What do you see instead?
This should probably either give an error message, or just work out of the box.

Original issue reported on code.google.com by martinpr...@google.com on 30 Jun 2011 at 12:51

GoogleCodeExporter commented 9 years ago
New behavior in Objectify4 is to expect you to put @Embed on the target class.  
This eliminates the confusion.

The problem with recognizing @Embed on primitive type fields is that it 
requires us to maintain a list of primitive type fields... this list changes 
periodically.  On the other hand, just covering the obvious ones (String, 
Number) might help.

Original comment by lhori...@gmail.com on 16 Dec 2011 at 2:34

GoogleCodeExporter commented 9 years ago
This is all handled automatically now. There is no more @Embed annotation.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 12:16