SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-509
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Piotr ZieleziƄski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

Searching for a null value - global default setting

Created: 17/Jan/08 03:52 AM   Updated: 10/Oct/10 05:11 PM
Component/s: Compass::Core
Affects Version/s: 1.2 GA
Fix Version/s: 2.0 M1


 Description  « Hide
When indexing most null values in business classes specifying e.g. nullValue="nullVal" at each of @SearchableProperty is quite risky when one has a lot of classes.

A parameter allowing to set default null value would come in handy.
When set it would input given value as nulls without defining explicitly in @SearchableProperty. If not set it would input "" from default return value in annotation definition.

The only problem is turning off null indexing for some properties. This could be done by new parameter e.g. skippNullValue=true or any equivalent.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 18/Jan/08 09:33 AM
Fixed. There is a global property now called compass.nullvalue which controls the default global null value. If a specific mapping has the value of $default$ then it will not take into account the global property.

Razan Abbass added a comment - 10/Oct/10 05:11 PM