Package org.springframework.data.mapping.model

Examples of org.springframework.data.mapping.model.FieldNamingStrategy


  @Test
  public void populatesPersistentPropertyWithCustomFieldNamingStrategy() {

    MongoMappingContext context = new MongoMappingContext();
    context.setApplicationContext(applicationContext);
    context.setFieldNamingStrategy(new FieldNamingStrategy() {

      public String getFieldName(PersistentProperty<?> property) {
        return property.getName().toUpperCase(Locale.US);
      }
    });
View Full Code Here

TOP

Related Classes of org.springframework.data.mapping.model.FieldNamingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.