-
Notifications
You must be signed in to change notification settings - Fork 355
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
Implement @SQLType annotation to support custom mapping of @Param parameters to java.sql.SQLType #2020
Comments
I can think of an adding the following annotation:
to be later used like:
The main topic of discussion is about the attributes of the annotation. The attributes of the annotation reflect the interface Using a simple CC: @mp911de |
It goes into the right direction. I would keep it really simple, adding |
So, basically, something like that:
Where the By the way, I'm not sure in this case the |
I prefer a dedicated interface as in |
So, basically, something like this:
The exact shape of the 'SomeValueType' is not yet clear, but we can figure it out during implementation and following discussion during review. What are your thoughts on this, Mark @mp911de ? If we agree on the general shape, then I can start working on it. |
Remove the |
@mp911de, just as a side note, Hibernate 6 introduced
So, basically, Hibernate only allows for customization of type's vendor number (such as those in I'm not saying that we should copy this solution, I just found it useful to attach information this to the issue history, and to get a general clue on how this problem is sovled in other Java ORM technologies. |
Signed-off-by: mipo256 <[email protected]>
Signed-off-by: mipo256 <[email protected]>
I don't like the Looking at Postgres and enum types, enum types get an individual oid at the time they are created. Forcing code to reflect a runtime configuration state in the domain model asks for trouble. |
I agree, that is why I have included into
I agree. You can look up the details of the implementation in the PR associated with this issue |
As a result of the following discussion, I'm filing an issue into this repository.
Related: #2000
The text was updated successfully, but these errors were encountered: