⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 namingstrategy.java

📁 介绍了hibernate的入门有一些基本常用的事例
💻 JAVA
字号:
//$Id: NamingStrategy.java,v 1.1 2004/06/03 16:30:05 steveebersole Exp $package org.hibernate.cfg;/** * A set of rules for determining the physical column * and table names given the information in the mapping * document. May be used to implement project-scoped * naming standards for database objects. * * @see DefaultNamingStrategy * @see ImprovedNamingStrategy * @author Gavin King */public interface NamingStrategy {	/**	 * Return a table name for an entity class	 * @param className the fully-qualified class name	 * @return a table name	 */	public String classToTableName(String className);	/**	 * Return a column name for a property path expression	 * @param propertyName a property path	 * @return a column name	 */	public String propertyToColumnName(String propertyName);	/**	 * Alter the table name given in the mapping document	 * @param tableName a table name	 * @return a table name	 */	public String tableName(String tableName);	/**	 * Alter the column name given in the mapping document	 * @param columnName a column name	 * @return a column name	 */	public String columnName(String columnName);	/**	 * Return a table name for a collection	 * @param className the fully-qualified name of the owning entity class	 * @param propertyName a property path	 * @return a table name	 */	public String propertyToTableName(String className, String propertyName);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -