-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: bugA general bugA general bug
Description
Jens Schauder opened DATAJDBC-192 and commented
The following naming strategy leads to inconsistent inserts and selects when Workout
s have a list of Exercise
s
private static class PrefixNamingStrategy implements NamingStrategy {
private Map<Class, String> columnPrefix = new HashMap<>();
{columnPrefix.put(Workout.class, "WO"); }
{columnPrefix.put(Exercise.class, "EX"); }
@Override
public String getColumnName(JdbcPersistentProperty property) {
return columnPrefix.get(property.getOwner().getType())
+ "_"
+ NamingStrategy.super.getColumnName(property);
}
@Override
public String getTableName(Class<?> type) {
return "T_" + NamingStrategy.super.getTableName(type);
}
}
No further details from DATAJDBC-192
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: bugA general bugA general bug