Fix for ALF-1578: Custom property data fields not searchable due to lucene DEFAULT.ftsIndexerJobDetail exception

- corrected default behaviour in the M2 model by  moving from the JibXed classes (we tend not to define default values in the m2 binding)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2010-03-04 15:05:45 +00:00
parent e14e100480
commit b77cbc5ee2
2 changed files with 42 additions and 14 deletions

View File

@@ -356,7 +356,14 @@ import org.alfresco.util.EqualsHelper;
*/
public boolean isIndexed()
{
return m2Property.isIndexed();
if(m2Property.isIndexed() == null)
{
return true;
}
else
{
return m2Property.isIndexed();
}
}
@@ -365,7 +372,14 @@ import org.alfresco.util.EqualsHelper;
*/
public boolean isStoredInIndex()
{
return m2Property.isStoredInIndex();
if(m2Property.isStoredInIndex() == null)
{
return false;
}
else
{
return m2Property.isStoredInIndex();
}
}
@@ -374,7 +388,14 @@ import org.alfresco.util.EqualsHelper;
*/
public boolean isIndexedAtomically()
{
return m2Property.isIndexedAtomically();
if(m2Property.isIndexedAtomically() == null)
{
return true;
}
else
{
return m2Property.isIndexedAtomically();
}
}
@@ -383,7 +404,14 @@ import org.alfresco.util.EqualsHelper;
*/
public IndexTokenisationMode getIndexTokenisationMode()
{
return m2Property.getIndexTokenisationMode();
if(m2Property.getIndexTokenisationMode() == null)
{
return IndexTokenisationMode.TRUE;
}
else
{
return m2Property.getIndexTokenisationMode();
}
}