That's not how to make a property unindexed in JDO. Read this blog post:

http://gae-java-persistence.blogspot.com/2009/11/unindexed-properties.html

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Wed, Dec 21, 2011 at 9:39 PM, Mukesh Joshi <joshi.mukesh...@gmail.com>wrote:

> package com.testapp.shared.dataobjects;
>
> import javax.jdo.annotations.PersistenceCapable;
> import javax.jdo.annotations.Persistent;
> import javax.jdo.annotations.PrimaryKey;
>
> //SC_CODE,SC_NAME,SC_GROUP,SC_TYPE,
> @PersistenceCapable
> public class Stock {
> @PrimaryKey
> @Persistent
>  private String code;
>
> @Persistent
> private String name;
>  @Persistent
> private String group;
>
> @Persistent
>  private String type;
>
> public String getGroup() {
> return group;
>  }
>
> public void setUnindexedGroup(String group) {
> this.group = group;
>  }
>
> public String getType() {
> return type;
>  }
>
> public void setUnindexedType(String type) {
> this.type = type;
>  }
>
> public String getCode() {
> return code;
>  }
>
>
>
> public String getName() {
> return name;
>  }
>
> public void setCode(String code) {
> this.code = code;
>  }
>
> public void setName(String stockName) {
> this.name = stockName;
>  }
> public Stock() {}
>  public Stock(String code, String name, String group, String type){
>  this.code = code;
> this.name = name;
> this.group = group;
>  this.type = type;
> }
>
> }
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/kk2lo4-eikQJ.
>
> 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