Hibernate ORM DefaultComponentSafeNamingStrategy - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM DefaultComponentSafeNamingStrategy class.

This code example shows how to use the following methods: foreignKeyColumnName
 
    @Override 
    public String foreignKeyColumnName(String propertyName,
                                       String propertyEntityName, String propertyTableName,
                                       String referencedColumnName) {
        return abbreviateName(super.foreignKeyColumnName( 
                addUnderscores(propertyName),
                addUnderscores(propertyEntityName),
                addUnderscores(propertyTableName),
                addUnderscores(referencedColumnName)));
    } 
 
    @Override 
    public String logicalCollectionColumnName(String columnName,
                                              String propertyName, String referencedColumn) {
        return abbreviateName(super.logicalCollectionColumnName( 
                addUnderscores(columnName), addUnderscores(propertyName),
                addUnderscores(referencedColumn)));
    } 
 
Full Snippet Info
3
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Hibernate ORM DefaultComponentSafeNamingStrategy Methods: