/** * The name of the table to be used for persisting entities having the type passed as an argument. The default * implementation takes the {@code type.getSimpleName()} and separates camel case parts with '_'. */ default String getTableName(Class<?> type) { Assert.notNull(type, "Type must not be null."); return ParsingUtils.reconcatenateCamelCase(type.getSimpleName(), "_"); }
/** * The name of the table to be used for persisting entities having the type passed as an argument. The default * implementation takes the {@code type.getSimpleName()} and separates camel case parts with '_'. */ default String getTableName(Class<?> type) { Assert.notNull(type, "Type must not be null."); return ParsingUtils.reconcatenateCamelCase(type.getSimpleName(), "_"); }
/** * The name of the table to be used for persisting entities having the type passed as an argument. The default * implementation takes the {@code type.getSimpleName()} and separates camel case parts with '_'. */ default String getTableName(Class<?> type) { Assert.notNull(type, "Type must not be null."); return ParsingUtils.reconcatenateCamelCase(type.getSimpleName(), "_"); }
@Override public Optional<String> getAttribute(String name) { String xmlAttributeName = ParsingUtils.reconcatenateCamelCase(name, "-"); String attribute = element.getAttribute(xmlAttributeName); return StringUtils.hasText(attribute) ? Optional.of(attribute) : Optional.empty(); }
/** * Defaults to return the given {@link RelationalPersistentProperty}'s name with the parts of a camel case name * separated by '_'; */ default String getColumnName(RelationalPersistentProperty property) { Assert.notNull(property, "Property must not be null."); return ParsingUtils.reconcatenateCamelCase(property.getName(), "_"); }
/** * Defaults to return the given {@link RelationalPersistentProperty}'s name with the parts of a camel case name separated by * '_'; */ default String getColumnName(RelationalPersistentProperty property) { Assert.notNull(property, "Property must not be null."); return ParsingUtils.reconcatenateCamelCase(property.getName(), "_"); }
/** * Defaults to return the given {@link RelationalPersistentProperty}'s name with the parts of a camel case name * separated by '_'; */ default String getColumnName(RelationalPersistentProperty property) { Assert.notNull(property, "Property must not be null."); return ParsingUtils.reconcatenateCamelCase(property.getName(), "_"); }