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. 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" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.