# Grails 1.1 表名和列名 - 列名

**URL:** <https://www.isharkfly.com/t/grails-1-1/6627>\
**Category:** 程序语言\
**Created:** [November 4, 2012, 3:33pm UTC](https://www.isharkfly.com/t/grails-1-1/6627 "2012-11-04T15:33:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [November 4, 2012, 3:33pm UTC](https://www.isharkfly.com/t/grails-1-1/6627/1 "2012-11-04T15:33:52Z")

</div>

同样，也是可能的定制某个列到数据库。比如说，你想改变列名例子如下:`class Person {
	String firstName
	static mapping = {
	table 'people'
	firstName column:'First_Name'
	}
}`在这个例子中，你定义了一个column块，此块包含的方法调用匹配每一个属性名称 (in this case firstName).

接下来使用命名的 column, 来指定字段名称的映射.
