-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HBX-2910: Make sure that the Exporter classes needed by plugin 'org.h…
…ibernate.eclipse.console' are visible and available Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Loading branch information
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.hibernate.tool.hbm2x; | ||
|
||
import org.hibernate.tool.internal.export.dao.DaoExporter; | ||
|
||
public class DAOExporter extends DaoExporter {} |
3 changes: 3 additions & 0 deletions
3
jbt/src/main/java/org/hibernate/tool/hbm2x/GenericExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.hibernate.tool.hbm2x; | ||
|
||
public class GenericExporter extends org.hibernate.tool.internal.export.common.GenericExporter {} |
5 changes: 5 additions & 0 deletions
5
jbt/src/main/java/org/hibernate/tool/hbm2x/Hbm2DDLExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.hibernate.tool.hbm2x; | ||
|
||
import org.hibernate.tool.internal.export.ddl.DdlExporter; | ||
|
||
public class Hbm2DDLExporter extends DdlExporter {} |
3 changes: 3 additions & 0 deletions
3
jbt/src/main/java/org/hibernate/tool/hbm2x/QueryExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.hibernate.tool.hbm2x; | ||
|
||
public class QueryExporter extends org.hibernate.tool.internal.export.query.QueryExporter {} |
87 changes: 87 additions & 0 deletions
87
jbt/src/test/java/org/hibernate/tool/hbm2x/ExportersPresenceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
package org.hibernate.tool.hbm2x; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
import static org.junit.jupiter.api.Assertions.fail; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
public class ExportersPresenceTest { | ||
|
||
@Test | ||
public void testHbm2DDLExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> ddlExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.Hbm2DDLExporter"); | ||
assertNotNull(ddlExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testPOJOExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> pojoExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.POJOExporter"); | ||
assertNotNull(pojoExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testHibernateMappingExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> hibernateMappingExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.HibernateMappingExporter"); | ||
assertNotNull(hibernateMappingExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testDAOExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> daoExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.DAOExporter"); | ||
assertNotNull(daoExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testGenericExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> genericExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.GenericExporter"); | ||
assertNotNull(genericExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testHibernateConfigurationExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> hibernateConfigurationExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.HibernateConfigurationExporter"); | ||
assertNotNull(hibernateConfigurationExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
@Test | ||
public void testQueryExporter() { | ||
try { | ||
ClassLoader cl = getClass().getClassLoader(); | ||
Class<?> hibernateConfigurationExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.QueryExporter"); | ||
assertNotNull(hibernateConfigurationExporterClass); | ||
} catch (Throwable t) { | ||
fail(t); | ||
} | ||
} | ||
|
||
} |