Bug 1033308 - @ProvidedId no longer required
Summary: @ProvidedId no longer required
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Documentation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: GA
: 6.2.0
Assignee: Misha H. Ali
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 20:32 UTC by Sanne Grinovero
Modified: 2014-01-16 00:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Build Name: 14318, Infinispan Query Guide-6.2-1 Build Date: 21-11-2013 08:29:28 Topic ID: 5006-489361 [Latest]
Last Closed: 2014-01-16 00:02:04 UTC
Type: Bug


Attachments (Terms of Use)

Description Sanne Grinovero 2013-11-21 20:32:44 UTC
Title: The Query Module Example

Describe the issue:
in "6.4.1. The Query Module Example"
remove the annotation @ProvidedId.

Also the formatting of the code examples is odd, would be nice to polish that.


Suggestions for improvement:

###############

@Indexed
public class Person implements Serializable {
   @Field(store = Store.YES)
   private String name;
   @Field
   private String description;
   @Field(store = Store.YES)
   private int age;
}

###############

SearchManager manager = Search.getSearchManager(cache);
QueryBuilder builder = sm.buildQueryBuilderForClass(Person.class).get();
Query luceneQuery = builder.keyword()
      .onField("name")
      .matching("FirstName")
      .createQuery();

###############

Comment 2 Misha H. Ali 2013-11-22 01:20:57 UTC
WIP

Comment 4 Martin Gencur 2013-11-25 15:54:22 UTC
Looks good except that one of the @Field annotations has a different color than the others. Is this expected?

Comment 5 Misha H. Ali 2013-11-25 23:48:35 UTC
That is automatic color markup. Red indicates that a tag is not closed or a line is not terminated correctly or such so I think as long as the code is correct, we can ignore the minor color discrepancy unless it is distracting for the user.

Comment 6 Misha H. Ali 2014-01-16 00:02:04 UTC
The fix for this bug is now generally released and available here:

https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.2/index.html


Note You need to log in before you can comment on or make changes to this bug.