Package com.onec.spring
Class OnecNamingStrategy
java.lang.Object
com.onec.spring.OnecNamingStrategy
- All Implemented Interfaces:
org.springframework.data.relational.core.mapping.NamingStrategy
public class OnecNamingStrategy
extends Object
implements org.springframework.data.relational.core.mapping.NamingStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) getKeyColumn(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) getReverseColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> owner) The back-reference column on a tabular-section child table.getReverseColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) getTableName(Class<?> type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.mapping.NamingStrategy
getSchema
-
Constructor Details
-
OnecNamingStrategy
public OnecNamingStrategy() -
OnecNamingStrategy
-
-
Method Details
-
getTableName
- Specified by:
getTableNamein interfaceorg.springframework.data.relational.core.mapping.NamingStrategy
-
getColumnName
public String getColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) - Specified by:
getColumnNamein interfaceorg.springframework.data.relational.core.mapping.NamingStrategy
-
getReverseColumnName
public String getReverseColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) - Specified by:
getReverseColumnNamein interfaceorg.springframework.data.relational.core.mapping.NamingStrategy
-
getReverseColumnName
public String getReverseColumnName(org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> owner) The back-reference column on a tabular-section child table. Spring Data JDBC resolves the reverse column through thisRelationalPersistentEntityoverload (seeBasicRelationalPersistentProperty#getReverseColumnName(RelationalPersistentEntity)), not the property overload above — so this one must also return_parent_idfor the mapping to match the generated schema. The only owned collections in this framework are tabular sections, so an unconditional_parent_idis correct.- Specified by:
getReverseColumnNamein interfaceorg.springframework.data.relational.core.mapping.NamingStrategy
-
getKeyColumn
public String getKeyColumn(org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) - Specified by:
getKeyColumnin interfaceorg.springframework.data.relational.core.mapping.NamingStrategy
-