-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FLOAT and DOUBLE commented out in Dialect #17
Comments
Because, in the super constructor you can find: registerColumnType( Types.FLOAT, "float($p)" );
registerColumnType( Types.DOUBLE, "double precision" ); And because, with SQLite: But you should also have a look at:
So depending on your convention / the column type(s) you actually use, you may have to tweak this dialect. |
The Reason I asked was, because I have a table that has some REAL columns. During the automatic creation of entities, I use Intellij Ultimate for that, these column types are converted to Object in Java. I think the dialect is used for this conversion, but I must confess, I have no idea about how this creation actually works. The thing that puzzled me was that REAL is transformed into Object even though SQlite documentation states that REAL, DOUBLE, DOUBLE PRECISION, FLOAT should be transformed into REAL (https://www.sqlite.org/datatype3.html#datatypes_in_sqlite). Could you enlighten me? Because this fact keeps me from enjoying auto creation of Java entities from my database. Thank you and kind regards. Christian |
As far as I know, you cannot generate Java entities from your database. |
I was also confused by these commented lines. But as I didn't experience any problems, I suggest to remove the two lines or even better replace them by comments that explain quickly something like "you don't find double and float here because they are in the super constructor". |
Hi,
first of all: Thank you for this dialect.
I use this one:
And when I look at the code of the SQLiteDialect class, I see:
Plus, the comment says that this dialect is appropriate for Hibernate 3
Could you tell why this is the case?
Thank you very much.
Kind regards.
Christian
The text was updated successfully, but these errors were encountered: