Package org.springframework.data.cassandra.mapping

Examples of org.springframework.data.cassandra.mapping.PropertyMapping


      String value = property.getAttribute("name");
      if (!StringUtils.hasText(value)) {
        throw new IllegalStateException("name attribute must not be empty");
      }
      PropertyMapping pm = new PropertyMapping(value);

      value = property.getAttribute("column-name");
      if (StringUtils.hasText(value)) {
        pm.setColumnName(value);
      }

      value = property.getAttribute("force-quote");
      if (StringUtils.hasText(value)) {
        pm.setForceQuote(value);
      }

      pms.put(pm.getPropertyName(), pm);
    }

    return pms;
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.cassandra.mapping.PropertyMapping

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.