From 9a7bab2a6a54849fe98de374be278f3c303e68ec Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Mon, 16 Nov 2009 21:41:55 +0000 Subject: [PATCH] OPENJPA-1051: Simplify check for uniqueness of column names. Patch contributed by Ravi Palacherla. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880972 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/schema/Table.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java index eb2012ef8..736d38b49 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java @@ -376,6 +376,13 @@ public class Table return col; } + /** + * Add a name to this NameSet + */ + public void addCorrectedColumnName(String name, boolean validate) { + addName(name, validate); + } + /** * Remove the given column from the table. @@ -816,15 +823,4 @@ public class Table public void setColNumber(int colNum) { _colNum = colNum; } - - /** - * Add a column to the subNames set to avoid naming conflict. - */ - public void addSubColumn(String name) { - addSubName(name); - } - - public void resetSubColumns() { - resetSubNames(); - } }