[FIX] NullPointerException with MS SQL Server
Status: Beta
Brought to you by:
dbradby
Since some persons have asked for a patch, but nobody
has provided a patch yet, I've implemented a quick and
dirty hack to allow choosing the MS SQL server in the
connection dialog.
I've tracked down the bug to
net.sf.hibernator.views.ConnectionSet and corrected it.
By the way, I consider the chosen implementation
(hardcode the dialects) bad style. What about getting
the supported dialects via the reflection API? Anyway,
the patch is attached and works for me (Eclipse 3.0.1,
Build-ID 200409161125; jtds-1.0.2). This patch should
also close the issue with request id "859026".
have fun :)
Daniel Mitterdorfer
Modified File for MS SQL Dialect
Logged In: NO
How do I use this file ? I can't compile it
Patched binary version of Hibernator plugin
Logged In: YES
user_id=1024482
What does "I can't compile it" mean? What steps have you
performed? Sure, you can't compile this file as is. You have
to fetch version 0.9.6 of the Hibernator source code, import
it into an Eclipse Plugin Project, change the file
ConnectionSet.java and then you can recompile it.
To save you time, I've attached the modified jar file. Copy
it to your Hibernator plugin directory
($ECLIPSE_DIR$/plugins/hibernator_0.9.6) ; it overwrites the
existing one. This plugin works for me, although I have
experienced problems with the query functionality.