# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- C:\Documents and Settings\firat.kucuk\Desktop\JavaApplication1\src\org\netbeans\modules\j2ee\persistence\wizard\fromdb\SelectedTables.java +++ C:\Documents and Settings\firat.kucuk\Desktop\SelectedTables.java @@ -216,7 +216,7 @@ className = EntityMember.makeClassName(table.getName()); className = persistenceGen.generateEntityName(className); } - return offerSingularClassName(className); + return className; } /** @@ -232,25 +232,6 @@ changeSupport.fireChange(); } - private String offerSingularClassName(String className) { - - StringBuffer result = new StringBuffer(className); - - if (className.endsWith("men")) { - result = result.replace(className.length() - 2, result.length() - 1, "a"); - } else if (className.endsWith("MEN")) { - result = result.replace(className.length() - 2, result.length() - 1, "A"); - } else if (className.endsWith("ies")) { - result = result.replace(className.length() - 3, result.length(), "y"); - } else if (className.endsWith("IES")) { - result = result.replace(className.length() - 3, result.length(), "Y"); - } else if (className.endsWith("s") || className.endsWith("S")) { - result = result.replace(className.length() - 1, result.length(), ""); - } - - return result.toString(); - } - private void putProblems(Table table, Set problems) { if (problems.isEmpty()) { table2Problems.remove(table);