facebook

Scaffolding with DB2

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #306105 Reply

    Dennis
    Participant

    This message has not been recovered.

    #306179 Reply

    Heflin Hogan
    Member

    This message has not been recovered.

    #306255 Reply

    Dennis
    Participant

    @hhogan wrote:

    I’ve been looking at this, and I’m confused as to exactly where the error you describe is occurring. Could you provide a little more detail, and perhaps a screen shot?

    Not sure if this image loaded.

    Anyway, it’s on the ‘Select Database Tables dialogue of the Scaffolding wizard; the MetaData Dialect dropdown does not display a db2 Dialect. As I said, I guessed at the class and it worked.

    #306260 Reply

    Heflin Hogan
    Member

    Ah, OK. I was misunderstanding. For DB2, you do not need to change the MetaData Dialect from default. The OracleMetaDataDialect class is a drop-in replacement for the default JDBCMetaDataDialect class to handle Oracle specific cases. There is no DB2 specific replacement in the standard Hibernate tools, but if you had a use case that required you to write one, we allow you to enter it on the panel in question.

    You can find additional information on the subject in the Hibernate doc. This is a good place to start: https://www.hibernate.org/hib_docs/tools/reference/en/html_single/#d0e1770.

    -Heflin

    #308967 Reply

    Satwa S. Rao
    Member

    I am having issues generating the Scaffolding from DB using mysql, the following is shown in error.log file

    Scaffolding Spring MVC CRUD Application failed.

    org.hibernate.cfg.JDBCBinderException: Could not load MetaDataDialect: (Default)
    at org.hibernate.cfg.JDBCReaderFactory.newMetaDataDialect(JDBCReaderFactory.java:42)
    at org.hibernate.cfg.JDBCReaderFactory.newJDBCReader(JDBCReaderFactory.java:24)
    at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:119)
    at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:94)
    at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:42)
    at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.createJDBCConfiguration(HibernateModelGenerator.java:157)
    at org.skyway.integration.data.persistence.importer.hibernate.HibernateModelGenerator.generateModel(HibernateModelGenerator.java:85)
    at org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInputProvider.generateDataTypes(TableDataTypeInputProvider.java:202)
    at org.skyway.integration.data.persistence.provider.datatype.TableDataTypeInputProvider.getDataTypes(TableDataTypeInputProvider.java:79)
    at com.skyway.scaffolding.crud.wizard.FilteredDataTypeInputProvider.getDataTypes(FilteredDataTypeInputProvider.java:33)
    at com.skyway.scaffolding.crud.util.CrudGenerationJob.getDataTypes(CrudGenerationJob.java:205)
    at com.skyway.scaffolding.crud.util.CrudGenerationJob.generateCrud(CrudGenerationJob.java:113)
    at com.skyway.scaffolding.crud.util.CrudGenerationJob.runInWorkspace(CrudGenerationJob.java:71)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.lang.ClassNotFoundException: (Default)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:147)
    at org.hibernate.cfg.JDBCReaderFactory.newMetaDataDialect(JDBCReaderFactory.java:38)
    … 14 more

    I have tried all kinds of MySQL Dialects, I am using InnoDB table type.

    Version of server is 5.1.46 on mac os x
    ConnectorJ version is 5.1.10

    It seems the default dialect has a problem, or at least hibernate tools jars are not finding its way.

    Also on 8.5 myeclipse for spring

    There is no option to choose the iPhone UI or Flex, should I upgrade this?

    Please I am in a crucial timeframe.

    Cheers,

    Satwa S. RAO

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Scaffolding with DB2

You must be logged in to post in the forum log in