Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBX-2390: Create a JBoss Tools adaptation layer in Hibernate Tools #4268

Merged
merged 1 commit into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.hibernate.mapping.Table;
import org.hibernate.tool.api.reveng.RevengSettings;
import org.hibernate.tool.api.reveng.RevengStrategy;
import org.hibernate.tool.ide.completion.HQLCodeAssist;
import org.hibernate.tool.ide.completion.HQLCompletionProposal;
import org.hibernate.tool.internal.export.common.DefaultArtifactCollector;
import org.hibernate.tool.internal.export.hbm.Cfg2HbmTool;
Expand Down Expand Up @@ -140,7 +139,7 @@ public static Object createDatabaseReaderWrapper(Properties properties, Object r
}

public static Object createTableWrapper(String name) {
Table result = new Table("Hibernate Tools", name);
TableWrapper result = new TableWrapper(name);
result.setPrimaryKey(new PrimaryKey(result));
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ public void testCreateDatabaseReaderWrapper() {
public void testCreateTableWrapper() {
Object tableWrapper = WrapperFactory.createTableWrapper("foo");
assertNotNull(tableWrapper);
assertTrue(tableWrapper instanceof Table);
Table table = (Table)tableWrapper;
assertTrue(tableWrapper instanceof TableWrapper);
Table table = (Table)((TableWrapper)tableWrapper).getWrappedObject();
assertEquals("foo", table.getName());
PrimaryKey pk = table.getPrimaryKey();
assertSame(table, pk.getTable());
Expand Down