Skip to content
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

H2 driver doesn't handle UUID_NATIVE fields, but it should #296

Open
lultimouomo opened this issue Apr 29, 2024 · 0 comments
Open

H2 driver doesn't handle UUID_NATIVE fields, but it should #296

lultimouomo opened this issue Apr 29, 2024 · 0 comments

Comments

@lultimouomo
Copy link

H2 is capable of handling UUIDs natively, but usingDataType.UUID_NATIVE results in:

	java.lang.UnsupportedOperationException: UUID is not supported by this database type
		at com.j256.ormlite.db.BaseDatabaseType.appendUuidNativeType(BaseDatabaseType.java:201)
		at com.j256.ormlite.db.BaseDatabaseType.appendColumnArg(BaseDatabaseType.java:137)
		at com.j256.ormlite.table.TableUtils.addCreateTableStatements(TableUtils.java:488)
		at com.j256.ormlite.table.TableUtils.doCreateTable(TableUtils.java:368)
		at com.j256.ormlite.table.TableUtils.doCreateTable(TableUtils.java:356)
		at com.j256.ormlite.table.TableUtils.createTableIfNotExists(TableUtils.java:74)

PR #295 should fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant