Yes, it seems this is a bug. I'm sure (ok 95% sure) it was working at one
point because I did this exact thing in one of my kinds and I'm sure I
tested to make sure the fields weren't indexed because it has a lot of
properties and I don't want them indexed. I just looked and yes the fields
are being indexed. Not good.

On Tue, Feb 8, 2011 at 3:14 AM, Nikolay Ivanov <nic...@email.com> wrote:

> I am trying to define embedded unindexed field without successes. I have
> following classes and the embedded fields are indexed regardless of the
> "unindexed" definition. I'm tryingto store BaseSensorValue class. Is that a
> bug or I miss something?
>
> @PersistenceCapable
> @EmbeddedOnly
> public class QuantityValue {
>
>     @Persistent
>     @Extension(vendorName="datanucleus", key="gae.unindexed",
> value="true")
>     private Double value;
>
>     public QuantityValue() {
>     }
>
>     public Double setValue(Double value) {
>         this.value = value;
>     }
>
>     public Double getValue() {
>         return value;
>     }
> }
>
> @PersistenceCapable
> public class BaseSensorValue extends BasePersistentObject {
>
>     @Persistent
>     @Embedded(members = {
>             @Persistent(name="value", columns=@Column(name="v"),
> extensions=@Extension(vendorName="datanucleus", key="gae.unindexed",
> value="true"))
>         })
>     private QuantityValue value;
>
>     @Persistent
>     @Embedded(members = {
>             @Persistent(name="value", columns=@Column(name="cv"),
> extensions=@Extension(vendorName="datanucleus", key="gae.unindexed",
> value="true"))
>         })
>     private QuantityValue calcValue;
>
>
>
>     public BaseSensorValue() {}
>
>
>
>     public QuantityValue getCalculatedValue() {
>         return calcValue;
>     }
>
>     public QuantityValue getValue() {
>         return value;
>     }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to