GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / src / groovy / org / codehaus / groovy / grails / orm / hibernate / cfg / Identity.groovy
blobdcfb23eb43c67e23a38d4017e6a75f957eb3a49c
1 /*
2 * Copyright 2003-2007 the original author or authors.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /**
18 * @author Graeme Rocher
19 * @since 1.0
21 * Created: Sep 27, 2007
23 package org.codehaus.groovy.grails.orm.hibernate.cfg
24 /**
25 * <p>Defines the identity generation strategy. In the case of a 'composite' identity the properties
26 * array defines the property names that formulate the composite id
28 class Identity {
29 String generator = 'native'
30 String column = 'id'
31 Class type = Long
32 Map params = [:]
34 String toString() { "id[generator:$generator, column:$id, type:$type]" }