DATAES-33 - Polishing

* Move @Parent property recognition to ElasticsearchPersistentProperty
* Move type contraints for @Version and @Parent fields to ElasticsearchPersistentProperty to fail faster
* remove unused constant SUPPORTED_ID_TYPES from SimpleElasticsearchPersistentProperty

Original pull request: #208
This commit is contained in:
xhaggi
2018-06-13 16:05:37 +02:00
parent 527f669f76
commit 89d0633fd5
4 changed files with 69 additions and 30 deletions

View File

@@ -37,7 +37,7 @@ import org.springframework.util.ReflectionUtils;
*/
public class SimpleElasticsearchPersistentEntityTests {
@Test(expected = IllegalArgumentException.class)
@Test(expected = MappingException.class)
public void shouldThrowExceptionGivenVersionPropertyIsNotLong() throws NoSuchFieldException, IntrospectionException {
// given
TypeInformation typeInformation = ClassTypeInformation.from(EntityWithWrongVersionType.class);