Constraint

Description

Define a class constraint for sql mappings.

Parameters

Attribute Description Required
name the constraint-name. Yes
type type of constraint ("unique" only currently supported) Yes

Text

Comma seperated list of 'java' field names for constraint. (not the column name.. will be verified and translated by generator)

Parameters specified as nested elements

NONE

Examples

for a class with Java fields name, organization, email, etc..
  
<constraint name="person_fields_unique" type="unique" >
   name, orginization, email
</constraint>

Copyright © 2000,2001,2002 Paul Bethe and Richie Bielak. All rights Reserved.