Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-beta3
-
None
-
None
Description
org.apache.openjpa.jdbc.schema.SchemaGenerator.java
=============================================
...
...
public void generateTables(DBIdentifier schemaName, DBIdentifier tableName,
Connection conn, DatabaseMetaData meta) {
...
Table table;
DBIdentifier tableSchema = DBIdentifier.NULL;
for (int i = 0; cols != null && i < cols.length; i++) {
if (DBIdentifier.isNull(tableName) || tableName.equals("%"))
...
...
}
}
if parameter tableName is null, than tableName is always been set the first column table Identifier
--> "cols[0].getTableIdentifier() "
this cause only generate first table class file with wrong columns.
Attachments
Issue Links
- is required by
-
OPENJPA-1091 ReverseMappingTool fails for openjpa-examples/reversemapping sample
- Closed