[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-719) Hibernate Tools should be able to use a named Eclipse provided connection

Dima Geraskov (JIRA) jira-events at lists.jboss.org
Fri Jul 18 06:40:52 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBIDE-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12421820#action_12421820 ] 

Dima Geraskov commented on JBIDE-719:
-------------------------------------

1. Create new java project as usual, console configuration hibernate launch with dao exporter 
2. Make sure that exporter works
3. Open hibernate.cfg.xml file, remove dialect property, rebuild your console configuration
4. Run exporter again
5. See errors:

org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
	at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
	at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
	at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005)
	at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$2.execute(CodeGenerationLaunchDelegate.java:316)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.buildConfiguration(CodeGenerationLaunchDelegate.java:283)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:216)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:136)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:880)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1083)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


> Hibernate Tools should be able to use a named Eclipse provided connection
> -------------------------------------------------------------------------
>
>                 Key: JBIDE-719
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-719
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>            Reporter: Max Rydahl Andersen
>            Assignee: Max Rydahl Andersen
>            Priority: Critical
>             Fix For: 3.0.0.beta1
>
>         Attachments: EditConsolleConfig.JPG, EditConsolleConfig_Res1.jpg, EditConsolleConfig_Res2.jpg, EditConsolleConfigNew2.JPG, JBIDE-719.zip, NewSeamProj.JPG
>
>   Original Estimate: 4 days
>  Remaining Estimate: 4 days
>
> currently we use the settings specified in hibernate.properties/cfg.xml/persistence.xml
> Users should be able to say to use a named WTP provided database connection. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list