/** INTERNAL: Return a TableDefinition specifying sequence table. */
 public TableDefinition buildTableDefinition() {
   TableDefinition definition = new TableDefinition();
   definition.setName(getSequenceTableName());
   definition.addPrimaryKeyField(getSequenceNameFieldName(), String.class, 50);
   definition.addField(getSequenceCounterFieldName(), BigDecimal.class);
   return definition;
 }
  /** Return a platform independant definition of the database table. */
  public static TableDefinition tableDefinition() {
    TableDefinition definition = new TableDefinition();

    definition.setName("OWNER_A");

    definition.addIdentityField("ID", java.math.BigDecimal.class, 15);
    definition.addField("NAME", String.class, 10);
    definition.addField("ONE_TO_ONE_", java.math.BigDecimal.class, 15);
    definition.addForeignKeyConstraint("OWNER_A_ONE_TO_ONE", "ONE_TO_ONE_", "ID", "OWNER_B");

    return definition;
  }