Best code examples for Hibernate ORM DefaultNamingStrategy class (org.hibernate.cfg.DefaultNamingStrategy)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM DefaultNamingStrategy class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM DefaultNamingStrategy examples from Open Source projects
This code example shows how to use the following methods:
package org.hibernate.test.namingstrategy; 
import org.hibernate.cfg.DefaultNamingStrategy; 
 * @author Emmanuel Bernard 
 * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) 
public class TestNamingStrategy extends DefaultNamingStrategy { 
	public String propertyToColumnName(String propertyName) { 
		return "PTCN_" + propertyName; 
	public String columnName(String columnName) { 
		return "CN_" + columnName; 
	public String logicalColumnName(String columnName, String 
			propertyName) { 
		return "LCN_" + super.logicalColumnName( columnName, propertyName );