Reduce JPA uri param length from 256 to 255 to accomodate MySql

This commit is contained in:
James Agnew 2015-10-21 10:37:56 -04:00
parent c3b9804b8a
commit d838a2bd4b
3 changed files with 11 additions and 1 deletions

View File

@ -43,6 +43,9 @@ import org.hibernate.search.annotations.Field;
})
public class ResourceIndexedSearchParamString extends BaseResourceIndexedSearchParam {
/*
* Note that MYSQL chokes on unique indexes for lengths > 255 so be careful here
*/
public static final int MAX_LENGTH = 200;
private static final long serialVersionUID = 1L;

View File

@ -43,7 +43,10 @@ import org.hibernate.search.annotations.Indexed;
//@formatter:on
public class ResourceIndexedSearchParamUri extends BaseResourceIndexedSearchParam {
public static final int MAX_LENGTH = 256;
/*
* Note that MYSQL chokes on unique indexes for lengths > 255 so be careful here
*/
public static final int MAX_LENGTH = 255;
private static final long serialVersionUID = 1L;

View File

@ -188,6 +188,10 @@
by calling the actual implementing method in the server (previously
the call was simulated, which meant that many features did not work)
</action>
<action type="add">
JPA server maximumn length for a URI search parameter has been reduced from
256 to 255 in order to accomodate MySQL's indexing requirements
</action>
</release>
<release version="1.2" date="2015-09-18">
<action type="add">