<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<o:p> </o:p>
<blockquote cite="mid:001601c9fb13$f56b2540$e0416fc0$@com" type="cite">
<div class="Section1">
<p class="MsoNormal">why GenerateEntitiesWizard -> performFinish
-> wc.setAttribute("hibernate.dialect",
"org.hibernate.dialect.PostgreSQLDialect")?<o:p></o:p></p>
<p class="MsoNormal">why we setup
org.hibernate.dialect.PostgreSQLDialect by
default? it look like some error… Dima create JBIDE-4555.<o:p></o:p></p>
</div>
</blockquote>
yeah that sounds weird - doesn't make sense.<br>
<blockquote cite="mid:001601c9fb13$f56b2540$e0416fc0$@com" type="cite">
<div class="Section1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Max, why ConsoleConfiguration ->
localCfg.setProperty(
"hibernate.temp.use_jdbc_metadata_defaults", "false" ); -
is false not a true?<o:p></o:p></p>
<p class="MsoNormal">Is the reason the same - autoConfigureDialect is
commented:<o:p></o:p></p>
<p class="MsoNormal">//autoConfigureDialect(localCfg); Disabled for
now since it
causes very looong timeouts for non-running databases + i havent been
needed
until now...<o:p></o:p></p>
<p class="MsoNormal">autoConfigureDialect</p>
</div>
</blockquote>
yes - a non-started database causes the whole ui to hang.<br>
<blockquote cite="mid:001601c9fb13$f56b2540$e0416fc0$@com" type="cite">
<div class="Section1">
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">So why GenerateEntitiesWizard ->
performFinish ->
wc.setAttribute("hibernate.temp.use_jdbc_metadata_defaults",
true);<o:p></o:p></p>
<p class="MsoNormal">Do you know some other way - to check
non-running database
quickly without getConnection?<o:p></o:p></p>
</div>
</blockquote>
look at the datbase url, driverclass and look at the info in DTP data
or if that is not enough ask the user for the db, <br>
<blockquote cite="mid:001601c9fb13$f56b2540$e0416fc0$@com" type="cite">
<div class="Section1">
<p class="MsoNormal">It is possible to enhance SettingsFactory ->
buildSettings
here:<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent: -0.25in;"><!--[if !supportLists]--><span
style="font-family: Wingdings;"><span style="">è<span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">
</span></span></span><!--[endif]-->if (
useJdbcMetadata ) {<o:p></o:p></p>
</div>
</blockquote>
<blockquote cite="mid:001601c9fb13$f56b2540$e0416fc0$@com" type="cite">
<div class="Section1">
<p class="MsoNormal">it is possible to cache databaseName &
databaseMajorVersion
to read it only once…<o:p></o:p></p>
</div>
</blockquote>
No, what should it based the cache on ?<br>
<br>
Not a job for hibernate core to keep track of.<br>
<br>
/max<br>
<br>
</body>
</html>