Name

column — Define a column to be generated.

Synopsis

<column name="name" [data-type="data type"|ds-type="data type"] [size="number"] [random-seed="longValue"]>
	...
</column>
				

Description

This element define a column to be generated. At least one of data-type or ds-type must be specified.

Attributes

name

The column name (obligatory).

data-type

The column data type. This data types are speficic to the program.

ds-type

The column data source specific type. It must be the name of a data type define in the underlying data source DBMS.

size

The column size or length. For character string or byte string types, this attribute should be defined or the application will pick up 32 bytes or characters as value.

random-seed

The random seed used when creating the random data generators.

Example

Example 10. Column example

<project name="testProject">
	...
	<metadata>
		<table name="table1">
			<generator ... />
			...
			<column name="column1" data-type="string" size="60">
				...
			</column>
		</table>
		<table name="table2">
			<generator ... />
			...
			<column name="column2" ds-type="INT" random-seed="0">
				...
			</column>
		</table>
	</metadata>
	...
</project>